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
扫描二维码关注公众号,回复:
4646299 查看本文章
Mentioned below are trace flags which are classical way to enable Deadlock trace in SQL Server Editions.
- Enable Trace Flag 1204 - Here data are captured in node level.
Dbcc traceon (T1204,-1)
- Enable Trace Flag 1222 - Here data is returned in XML Format. Also one can see the processes information also which are involved in deadlock.
DBCC Traceon (T1222,-1)
- Run SQL Profiler Trace to capture the Deadlock events.
This deadlock information can be viewed in SQL Server Error Logs and Trace Files.
DBCC TRACEON(1204, -1); DBCC TRACEON(1222, -1);