Query Hints Flashcards
With NOWAIT
QUERY WILL TIMEOUT IMMEDIATELY IF A LOCK EXISTS ON THE TABLE
WITH PAGLOCKX
Statement will attempt to acquire an exclusive page lock instead of row or table locks
WITH READPAST
Query will ignore locked rows and return a result set based on the unlocked rows
WITH NOLOCK
Query will disregard any locks on the tables referenced by the query. This will result in DIRTY READS
QUERY WILL TIMEOUT IMMEDIATELY IF A LOCK EXISTS ON THE TABLE
WITH NOWAIT
Statement will attempt to acquire an exclusive page lock instead of row or table locks
WITH PAGLOCKX
Query will ignore locked rows and return a result set based on the unlocked rows
WITH READPAST
Query will disregard any locks on the tables referenced by the query. This will result in DIRTY
WITH NOLOCK
WITH XLOCK
Place an EXCLUSIVE lock on the selected resources
Place an EXCLUSIVE lock on the selected resources
WITH XLOCK