HiI was trying to create stored proc[code="create procedure dbo.sp_table1 @id intas begin update table1 set isarchived = 1, modtime = getdate() where id = @id and isarchived = 0 insert into table1 ( modtime,id,value ) values (getdate(),3,'skdjdj' ) end"][/code]but the query was continuously blocking the query belowupdate table1 set isarchived = 1, modtime = getdate() where id = @id and isarchived = 0I was not sure, why the create procedure statement is blocking the update statement.Please help
↧