dbTalk Databases Forums  

Profiler: Deadlock Graph - Associated ObjectID

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Profiler: Deadlock Graph - Associated ObjectID in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Michael MacGregor
 
Posts: n/a

Default Profiler: Deadlock Graph - Associated ObjectID - 06-15-2009 , 11:59 AM






I'm sure I asked this question on here before and pretty sure I got a very
useful answer to my question, however, being the dufus I am I didn't save
the answer and have long since forgotten what it was. So here I am again,
encamped upon your floor to ask once more what is the Associated ObjectaID
that gets displayed in the deadlock graph because it sure doesn't seem to be
an object_id from sys.objects?

Can anyone please explain to this forgetful old DBA?

An example of an associated object id would be like 72057647487385600.

Thanks,

Michael MacGregor
Database Architect

Reply With Quote
  #2  
Old   
Michael MacGregor
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-15-2009 , 12:17 PM






Whilst I am on the subject? Is there a really good book, or article that
fully explains the deadlock graph because so far neither BOL nor anything
else I can find online does a satisfactory job of it.

TIA

MTM

Reply With Quote
  #3  
Old   
Aaron Bertrand [SQL Server MVP]
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-15-2009 , 02:10 PM



That's the HoBt ID. (HoBt stands for "Heap or B-tree.") In SQL Server 2005
and 2008 the HoBt ID is identical to the partition_id. So, you can say:

SELECT OBJECT_NAME([object_id])
FROM sys.partitions
WHERE partition_id = 72057647487385600;

If you use non-dbo schemas then it is safer to say (assuming 2005 P2 or
higher):

SELECT OBJECT_SCHEMA_NAME([object_id]),
OBJECT_NAME([object_id])
FROM sys.partitions
WHERE partition_id = 72057647487385600;

As for your follow-up question, Grant Fritchey does a great job demystifying
deadlock graph analysis in "SQL Server 2008 Query Performance Tuning
Distilled." (ISBN = 978-1-4302-1902-6)

Don't be scared by the version in the title; most of the concepts in the
book apply equally to 2005. Since you are looking at sys.objects I assume
you are not concerned about SQL 2000, but it never hurts to mention which
version(s) you are managing.

A





On 6/15/09 12:59 PM, in article #NgSkqd7JHA.240 (AT) TK2MSFTNGP03 (DOT) phx.gbl,
"Michael MacGregor" <macnoknifespam (AT) noemailspam (DOT) com> wrote:

Quote:
I'm sure I asked this question on here before and pretty sure I got a very
useful answer to my question, however, being the dufus I am I didn't save
the answer and have long since forgotten what it was. So here I am again,
encamped upon your floor to ask once more what is the Associated ObjectaID
that gets displayed in the deadlock graph because it sure doesn't seem to be
an object_id from sys.objects?

Can anyone please explain to this forgetful old DBA?

An example of an associated object id would be like 72057647487385600.

Thanks,

Michael MacGregor
Database Architect


Reply With Quote
  #4  
Old   
Aaron Bertrand [SQL Server MVP]
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-15-2009 , 02:12 PM



This may be a useful primer also...

http://is.gd/12HnD


On 6/15/09 1:17 PM, in article #U2s00d7JHA.3860 (AT) TK2MSFTNGP05 (DOT) phx.gbl,
"Michael MacGregor" <macnoknifespam (AT) noemailspam (DOT) com> wrote:

Quote:
Whilst I am on the subject? Is there a really good book, or article that
fully explains the deadlock graph because so far neither BOL nor anything
else I can find online does a satisfactory job of it.

TIA

MTM


Reply With Quote
  #5  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-15-2009 , 04:41 PM



Michael MacGregor (macnoknifespam (AT) noemailspam (DOT) com) writes:
Quote:
I'm sure I asked this question on here before and pretty sure I got a
very useful answer to my question, however, being the dufus I am I
didn't save the answer and have long since forgotten what it was. So
here I am again, encamped upon your floor to ask once more what is the
Associated ObjectaID that gets displayed in the deadlock graph because
it sure doesn't seem to be an object_id from sys.objects?
Personally I have found little value of the deadlock graph in Profiler.
You get more information if you enable traceflag 1222.

--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx

Reply With Quote
  #6  
Old   
Michael MacGregor
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-16-2009 , 10:09 AM



Where would be the best place to find detailed information about that
traceflag?

MTM

Reply With Quote
  #7  
Old   
Michael MacGregor
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-16-2009 , 10:09 AM



Thanks Aaron.

MTM

Reply With Quote
  #8  
Old   
Michael MacGregor
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-16-2009 , 10:13 AM



Thanks, but I wasn't asking about the HoBt ID, I was asking about the
associated objid that appears in the Resource Node box. According to that
article by Brad McGehee you gave me a link to it's "...the object ID of the
table associated with this index." This would appear to be incorrect as that
ID most definitely does not exist in the sys.objects table.

MTM

Reply With Quote
  #9  
Old   
Aaron Bertrand [SQL Server MVP]
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-16-2009 , 12:33 PM



Yes I didn't read the article verbatim. But I believe I answered your
question already... The "object ID" is actually the HoBt ID, which (at least
in current versions 2005/2008) corresponds to partition_id in
sys.partitions...


On 6/16/09 11:13 AM, in article eZNn8Tp7JHA.4116 (AT) TK2MSFTNGP04 (DOT) phx.gbl,
"Michael MacGregor" <macnoknifespam (AT) noemailspam (DOT) com> wrote:

Quote:
Thanks, but I wasn't asking about the HoBt ID, I was asking about the
associated objid that appears in the Resource Node box. According to that
article by Brad McGehee you gave me a link to it's "...the object ID of the
table associated with this index." This would appear to be incorrect as that
ID most definitely does not exist in the sys.objects table.

MTM


Reply With Quote
  #10  
Old   
Aaron Bertrand [SQL Server MVP]
 
Posts: n/a

Default Re: Profiler: Deadlock Graph - Associated ObjectID - 06-16-2009 , 12:35 PM



http://blogs.msdn.com/bartd/archive/...09/747119.aspx




On 6/16/09 11:09 AM, in article #mF3mRp7JHA.1764 (AT) TK2MSFTNGP06 (DOT) phx.gbl,
"Michael MacGregor" <macnoknifespam (AT) noemailspam (DOT) com> wrote:

Quote:
Where would be the best place to find detailed information about that
traceflag?

MTM


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.