top of page

SQL Server Wait Types

  • Writer: Kunal Ranpura
    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'

 
 
 

Recent Posts

See All
SQL Server Profiler Trace

--Import multiple trace file in sql Table. --All the rollover files will be automatically imported --provide number tracefile to capture...

 
 
 

Comments


bottom of page