Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
With (NoLock) ?
Message
 
To
07/03/2006 13:39:04
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01102141
Message ID:
01102175
Views:
21
This message has been marked as a message which has helped to the initial question of the thread.
>What is the utility of clause WITH (NOLOCK) in SELECT FROM ?

If you have connections with pending transactions that are locking rows in a table and you don't have this hints, no rows will be returned before the rows get unlocked. If you specify this hint, you will get the last known state of the rows (often known as dirty-read).

I have used the term "rows" but most often, a complete 8K page is locked even if a single row as to be locked.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform