-
Notifications
You must be signed in to change notification settings - Fork 10
SQL Waits
beumof edited this page Apr 17, 2019
·
2 revisions
Check sys.dm_os_wait_stats (Transact-SQL) to see the full list (SQL Server 2017)
Wait statistics can be checked using sys.dm_os_wait_stats DMV.
SELECT * FROM sys.dm_os_wait_stats
These statistics are not persisted across SQL Server restarts, and all data is cumulative since the last time the statistics were reset or the server was started.
--Reset to zero Wait statistics
DBCC SQLPERF ('sys.dm_os_wait_stats', CLEAR);
GO
By Beumof (GPLv3)