SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Deadlocks: Determining the victim with little info from Profiler...


Deadlocks: Determining the victim with little info from Profiler...

Author
Message
SQL_ME_RICH
SQL_ME_RICH
SSC Eights!
SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)

Group: General Forum Members
Points: 930 Visits: 1596
Hello all -

So, I have been hunting down and resolving deadlock issues over the past week, but have come across one that is not giving me much info in the way of the PROC or Ad-Hoc query involved. See image below



As you can see - the 'Statement:' is blank, and even the line reference is pretty vague. I've also tried reading the info from the SQL Log by using Trace Flags -T1222 and -T3605, but no luck there either. The information gives me little to no detail as to what object is the actual victim. I know that there are 2 PROCs involved, but which is the actual deadlock victim is not readily apparent, and in this particular case - the best thing I can do is look at the index given (because it is in nearly every deadlock, but my remedy for that is to simply rebuild it, and not much more - no ad-hoc query listed to add a new index by, so nothing else that I know to do).

Any insight would be much appreciated.
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15021 Visits: 14396
Please save off the deadlock graph and attach it to this thread.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
SQL_ME_RICH
SQL_ME_RICH
SSC Eights!
SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)

Group: General Forum Members
Points: 930 Visits: 1596
Deadlock Graph...
Attachments
deadlock_sample.jpg (17 views, 680.00 KB)
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15021 Visits: 14396
No, not the picture again. The XML. That picture is rendered off an XML document which contains important troubleshooting information.

Right click the row in Profiler and click Extract Event Data..., save the file and attach it to this thread.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
SQL_ME_RICH
SQL_ME_RICH
SSC Eights!
SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)

Group: General Forum Members
Points: 930 Visits: 1596
Sorry about that - here ya go...
Attachments
Deadlock1.zip (13 views, 1.00 KB)
Orlando Colamatteo
Orlando Colamatteo
SSCoach
SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)SSCoach (15K reputation)

Group: General Forum Members
Points: 15021 Visits: 14396
Open the xdl in Notepad to see the two statements involved.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
SQL_ME_RICH
SQL_ME_RICH
SSC Eights!
SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)SSC Eights! (930 reputation)

Group: General Forum Members
Points: 930 Visits: 1596
OK...I had seen this ad-hoc query in the mix of things in past deadlocks, but couldn't tell that it was the victim until now.

Thank you so very much for pointing this out opc.three! Now - I need to figure out if there is some way for me to get this to stop happening, because there is nothing I can do to improve this query as it is today (ran it through DTA with no improvements to be made).
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search