DECLARE @spid INT , @bl INT , @intTransactionCountOnEntry INT , @intRowcount INT , @intCountProperties INT , @intCounter INT CREATE TABLE #tmp_lock_who ( id , ) , spid SMALLINT , bl SMALLINT ) print @@ERROR INSERT INTO #tmp_lock_who ( spid , bl ) , b…