SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

AparajitaDutta
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.

sunitabeck
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: http://www.sqlservercentral.com/articles/deadlock/65658/
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2079 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.
http://www.sqlserver-dba.com/2012/04/sql-server-default-trace-faq.html

One of the events available is Lock:Deadlock

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.12 seconds. Powered By: Snitz Forums 2000