SQL Server Wait Types
- Kunal Ranpura

- Jul 28, 2019
- 1 min read
--Find the waittypes
select * from sys.dm_os_wait_stats order by wait_time_ms desc
--Clear the counter
DBCC SQLPERF ('sys.dm_os_wait_stats', CLEAR);
GO
--Find CXPACKET Wait type.
select * from sysprocesses where lastwaittype ='CXPACKET'







Comments