Monday, June 06, 2005

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
...

2 Comments:

Blogger Enric said...

It seems very interesting.

11:26 PM  
Anonymous Anonymous said...

It's good

10:41 AM  

Post a Comment

<< Home