Avoiding locks in tables
Using the 'nolock' clause we are avoiding create collisions or jam
if in that moment another task is updating the same table
update tblTable
set sinStepCodeId = 2
from tblTable
where sinStatusid in(2)
go
Select count(*) from tblTable nolock
go
...
if in that moment another task is updating the same table
update tblTable
set sinStepCodeId = 2
from tblTable
where sinStatusid in(2)
go
Select count(*) from tblTable nolock
go
...
2 Comments:
It seems very interesting.
It's good
Post a Comment
<< Home