Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Deadlocks in SQL server

Author  Topic 

Starting Member

1 Post

Posted - 2012-09-14 : 06:52:53
How to write query to get all data that are being collected as deadlocks in SQL server, i am not allowed to use SQLtrace.

Anyone help is highly appreciated.

Master Smack Fu Yak Hacker

5155 Posts

Posted - 2012-09-14 : 07:06:25
As far as I know, in SQL 2005 there isn't a way to do this without SQL Trace permissions. If you are fortunate enough to be on SQL 2008, see this article by Jonathan Kehayias that describes how to use extended events to get deadlock graphs:
Go to Top of Page

Master Smack Fu Yak Hacker

2179 Posts

Posted - 2012-09-14 : 11:48:17
Default Trace (different to sql trace) won't give you all the data - but it will give you some good hints at deadlock occurences.

One of the events available is Lock:Deadlock

Jack Vamvas
Go to Top of Page

- Advertisement -