Wait Type SP_SERVER_DIAGNOSTICS_SLEEP

The wait type SP_SERVER_DIAGNOSTICS_SLEEP is ranked #5 by Stedman Solutions and Database Health Monitor.

Wait statistics, in the context of SQL Server, refer to the amount of time that a query spends waiting to access data in the database. When a client application requests data from the database, the request is placed in a queue and the client application must wait for its turn to access the data. The time that the query spends waiting is called a "wait" and is tracked by SQL Server. This information can be used to identify potential performance bottlenecks and optimize the performance of the database. Wait statistics are commonly used by database administrators to diagnose and troubleshoot performance issues in SQL Server.


The SP_SERVER_DIAGNOSTICS_SLEEP wait type in SQL Server is a type of wait that occurs when a task is waiting for the sp_server_diagnostics system stored procedure to complete. The sp_server_diagnostics procedure is used to collect diagnostic information about the SQL Server instance, such as the current workload, CPU usage, and memory usage. When a task is in the SP_SERVER_DIAGNOSTICS_SLEEP wait state, it is waiting for the sp_server_diagnostics procedure to finish before it can continue execution. This wait type is typically only seen when the sp_server_diagnostics procedure is being used.

Applies to

See Also


All Wait Types