Setting the Lock Escalation Level

The system administrator can further customize locking by setting SQL Server's lock escalation level. The lock escalation level determines when SQL Server applies table locks instead of page locks (the default), and it affects all users of SQL Server.

When a query requests rows from a table, SQL Server automatically generates page-level locks. However, if the query requests a large percentage of the table's rows, then SQL Server escalates the locking from page level to table level. This process is called lock escalation, and it makes table scans and operations against a large results set more efficient because it reduces locking overhead.

The system administrator configures lock escalation levels by using the sp_configure system stored procedure. For details, see sp_configure system stored procedure in the Microsoft SQL Server Transact-SQL Reference.