Export (0) Print
Expand All
Expand Minimize

MSSQLSERVER_1204

Product Name

SQL Server

Product Version

10.50

Product Build Number

10.50.0000.00

Event ID

1204

Event Source

MSSQLSERVER

Component

SQLEngine

Symbolic Name

LK_OUTOF

Message Text

The instance of the SQL Server Database Engine cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users. Ask the database administrator to check the lock and memory configuration for this instance, or to check for long-running transactions.

SQL Server cannot obtain a lock resource. This can be caused by either of the following reasons:

  • SQL Server cannot allocate more memory from the operating system, either because other processes are using it, or because the server is operating with the max server memory option configured.

  • The lock manager will not use more than 60 percent of the memory available to SQL Server.

If you suspect that SQL Server cannot allocate sufficient memory, try the following:

  • If applications besides SQL Server are consuming resources, try stopping these applications or consider running them on a separate server. This will remove release memory from other processes for SQL Server.

  • If you have configured max server memory, increase max server memory setting.

If you suspect that the lock manager has used the maximum amount of available memory identify the transaction that is holding the most locks and terminate it. The following script will identify the transaction with the most locks:

SELECT request_session_id, COUNT (*) num_locks
FROM sys.dm_tran_locks
GROUP BY request_session_id 
ORDER BY count (*) DESC

Take the highest session id, and terminate it using the KILL command.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft