Trace flag
1222
将死锁(deadlock)信息输出到errorlog
dbcc traceon(1222,-1)--全局有效
dbcc traceon(1222,1)--当前session有效
dbcc traceon(1222,1)--当前session有效
3004,3605
如果SQLSERVER开启了快速初始化功能,会将相关信息输入到errorlog
dbcc traceon(3004,3605,-1)
http://www.cnblogs.com/stswordman/archive/2011/01/03/1925072.html
3505
关闭checkpoint
dbcc traceon(3505,-1)