标签:dead man ota errorlog server ace count select object
DBCC TRACEON (1204, -1)
DBCC TRACEON (1222, -1)
SELECT cntr_value AS NumOfDeadLocks
FROM sys.dm_os_performance_counters
WHERE object_name = ‘SQLServer:Locks‘
AND counter_name = ‘Number of Deadlocks/sec‘
AND instance_name = ‘_Total‘
Exec xp_readerrorlog 0
标签:dead man ota errorlog server ace count select object
原文地址:https://www.cnblogs.com/liangyuwen/p/13390143.html