Home All Groups Group Topic Archive Search About

Table associated with a data page?

Author
8 Jul 2005 1:19 PM
Cris_Benge
If you have page level lock information (ex: PAG: 8:1:2234094), how do you
determine what table is associated with that page?

Thanks!

Author
8 Jul 2005 1:28 PM
Greg Linwood
use DBCC PAGE to dump the page & read m_objId from the page header... eg,
run the following from the Query Analyser:

dbcc traceon(3604)
go
dbcc page (8, 1, 2234094, 1)
go

Regards,
Greg Linwood
SQL Server MVP

Show quote
"Cris_Benge" <CrisBe***@discussions.microsoft.com> wrote in message
news:4E00BCBF-FBB6-43F8-95E3-ED6DE9548B0C@microsoft.com...
> If you have page level lock information (ex: PAG: 8:1:2234094), how do you
> determine what table is associated with that page?
>
> Thanks!
Author
8 Jul 2005 1:34 PM
Aaron Bertrand [SQL Server MVP]
While DBCC PAGE is not supported, you can see examples of its use here:

http://www.ctlcorp.com/support/sql/support1.html

Which will allow you to manually get down to the table (and index) involved.




Show quote
"Cris_Benge" <CrisBe***@discussions.microsoft.com> wrote in message
news:4E00BCBF-FBB6-43F8-95E3-ED6DE9548B0C@microsoft.com...
> If you have page level lock information (ex: PAG: 8:1:2234094), how do you
> determine what table is associated with that page?
>
> Thanks!
Author
8 Jul 2005 1:57 PM
Cris_Benge
"Aaron Bertrand [SQL Server MVP]" wrote:
> While DBCC PAGE is not supported, you can see examples of its use here:
> http://www.ctlcorp.com/support/sql/support1.html
> Which will allow you to manually get down to the table (and index) involved.
>

Thanks guys, exactly what I was looking for.  FYI - that link references the
usage of DBCC PAGE from SQL 6.0 and the syntax has changed in 2000.  I
probably should have specified what version I was using, but thought I would
give some feedback for future reference :)

AddThis Social Bookmark Button