Lock Granularity Hints

You can use to override lock granularity:

ROWLOCKYou can use this option to force the Lock Manager to place a row-level lock on a resource instead of a page-level or a table-level lock. You can use this option in conjunction with the XLOCK lock type hint to force exclusive row locks.

PAGLOCKYou can use this option to force a page-level lock on a resource instead of a row-level or table-level lock. You can use this option in conjunction with the XLOCK lock type hint to force exclusive page locks.

TABLOCKYou can use this option to force a table-level lock instead of a row-level or page-level lock. You can use this option in conjunction with the HOLDLOCK table hint to hold the table lock until the end of the transaction. ...

Get Microsoft® SQL Server 2008 R2 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.