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.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Express Edition and Compact Edition (2005)
 Deadlocks in SQL server
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 09/14/2012 :  06:52:53  Show Profile  Reply with Quote
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.

Flowing Fount of Yak Knowledge

5155 Posts

Posted - 09/14/2012 :  07:06:25  Show Profile  Reply with Quote
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

Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 09/14/2012 :  11:48:17  Show Profile  Visit jackv's Homepage  Reply with Quote
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
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000