avec des serrures de NOLOCK et exclusifs
-
28-10-2019 - |
Question
Alors, avec nolock ne prendra pas de serrures. Est-il toujours honorer les verrous en suspens? Par exemple, si je tente de sélectionner une ligne avec nolock, un autre processus qui a mis un verrou exclusif sur, mes sélectionner avec nolock être bloqué, ou sera sélectionnez la ligne?
La solution
I think the use of "NOLOCK" results in a dirty read which means that the data which is present before some locking has happened. Suppose, if a write lock has been put on a table to update some data and we try to read the data using "NOLOCK", the data which is present before updating is returned to us.
Hope this helps!!
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow