Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
With (NoLock) ?
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01102141
Message ID:
01102175
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform