Content

Using NOLOCK with SELECT statements

11 May

+ 2

Holy cow! Where have I been living?

You can use NOLOCK with SELECT statements to tell SQL to not lock the row/table/page/database.

NOLOCK tells sql to return data regardless of the lock status on the table or row, in other words it will return data before the commit, and could potentially return invalid data.

Hence the “90%”. : )

Comment

#

I reserve the right to delete and / or modify the comments that contain inappropriate language, spam or other behavior not appropriate in a civilized community. If your comment does not appear, it may be that akismet caught it.