April 1, 2008 at 10:32 pm
Delete statement which include not in clause will escalate lock ???
Delete statement alone will escalate lock ???
April 2, 2008 at 4:17 am
It depends how many rows you're deleting and whether you've changed the default lock escalation behavior with any trace flags. The default threshold for when escalation can occur (not guaranteed it will happen as soon as you hit the threshold) is 5000 locks.
Do you want to trigger or avoid lock escalation?
Paul Randal
CEO, SQLskills.com: Check out SQLskills online training!
Blog:www.SQLskills.com/blogs/paul Twitter: @PaulRandal
SQL MVP, Microsoft RD, Contributing Editor of TechNet Magazine
Author of DBCC CHECKDB/repair (and other Storage Engine) code of SQL Server 2005
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply