Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
This rule checks the value of the locks configuration option. This option determines the maximum number of available locks. This limits how much memory the SQL Server Database Engine uses for locks. The default setting of 0 enables the Database Engine to allocate and deallocate lock structures dynamically based on changing system requirements.
If locks are nonzero, batch jobs stop and an out of locks
error message will be generated if the value specified is exceeded.
Use the sp_configure
system stored procedure to change the value of locks to its default setting by using the following statement:
EXEC sp_configure 'locks', 0;
Configure the locks (server configuration option)
sys.dm_tran_locks (Transact-SQL)
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today