June 28, 2016 at 11:18 am
Getting deadlocks between 2 or more SPIds. It gives you the spids, but does not specify what resource is involved. The conflict is on Object Locks. But no description. No ObjectIDs. Does provide OwnerId and Transaction Descriptor - but that doesnt tell me much. Curiously, Log Used is zero for all involved processes
June 28, 2016 at 11:29 am
Can you post the deadlock graph?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 29, 2016 at 10:15 am
Thx for the offer Gail.
Collecting these from Profiler trace. Not easy to extract and post the Graphs.
I tried getting screen shots - but I cant seem to copy and paste into this post.
Would you mind sharing your e-mail? I'll send you a few screenshots
June 29, 2016 at 10:16 am
mine is harvinder.sidhu@cvshealth.com
June 29, 2016 at 10:36 am
Screen shots are useless, please post the XML deadlock graph here. Profiler does capture the XML.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
June 29, 2016 at 4:43 pm
You are right. The graph actually masks the real stuff. So eyeballing thru the trace, you never see the actual Text - only the graph. If I select against the trace file though and get the TextData for eventclass 148 now I can see the data. I can now see the waitresources etc and make sense of the mess. But weird though - normally the graph visually gives you the objectids etc....On some of these it did not. Very generic Object Locks. Now that I see the xml data - I can see what's going on that does not show up in the Graphs.
Thx for forcing me to get to where I needed to
June 30, 2016 at 1:18 am
The graph's pretty, but far from adequate for solving deadlocks, I never use it, when I teach deadlocks I show the XML only.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 3, 2016 at 9:53 pm
Do you have something like
DECLARE @SomeVar = dbo.SomeFunction(@param1, ...)
in the code of the procedure?
_____________
Code for TallyGenerator
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply