标签:flags sel his cap lda sql ext div obj
Event: Proc [Database Id = 12 Object Id = 525453146]
执行以下的sql语句,可以得到数据库名字和object名字
SELECT OBJECT_NAME(525453146) ,
DB_NAME(12);
https://www.cnblogs.com/rush/archive/2012/02/19/2358209.html
trace追踪的时候,选择deadlock:graph,deadlock:lock,deadlock:chain
Mentioned below are trace flags which are classical way to enable Deadlock trace in SQL Server Editions.
Dbcc traceon (T1204,-1)
DBCC Traceon (T1222,-1)
This deadlock information can be viewed in SQL Server Error Logs and Trace Files.
DBCC TRACEON(1204, -1); DBCC TRACEON(1222, -1);
标签:flags sel his cap lda sql ext div obj
原文地址:https://www.cnblogs.com/chucklu/p/10175643.html