Sql 记录死锁

记录死锁
DBCC errorlog
DBCC TRACEON (1204, 1222, -1);
DBCC tracestatus

关闭跟踪标记
DBCC TRACEOFF

原文地址:https://www.cnblogs.com/xishi/p/9068621.html