Query Hints Flashcards

1
Q

With NOWAIT

A

QUERY WILL TIMEOUT IMMEDIATELY IF A LOCK EXISTS ON THE TABLE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

WITH PAGLOCKX

A

Statement will attempt to acquire an exclusive page lock instead of row or table locks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

WITH READPAST

A

Query will ignore locked rows and return a result set based on the unlocked rows

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

WITH NOLOCK

A

Query will disregard any locks on the tables referenced by the query. This will result in DIRTY READS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

QUERY WILL TIMEOUT IMMEDIATELY IF A LOCK EXISTS ON THE TABLE

A

WITH NOWAIT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Statement will attempt to acquire an exclusive page lock instead of row or table locks

A

WITH PAGLOCKX

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Query will ignore locked rows and return a result set based on the unlocked rows

A

WITH READPAST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Query will disregard any locks on the tables referenced by the query. This will result in DIRTY

A

WITH NOLOCK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

WITH XLOCK

A

Place an EXCLUSIVE lock on the selected resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Place an EXCLUSIVE lock on the selected resources

A

WITH XLOCK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly