Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
General
»
Extent number / identitifier for a page
Extent number / identitifier for a page
Rate Topic
Display Mode
Topic Options
Author
Message
ckempste
ckempste
Posted Wednesday, March 19, 2003 1:57 AM
SSC Eights!
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
Hi all
Does anyone know of (or has info on) how I can retrieve the extent# and/or ID for a specific db file page. The DBCC PAGE command doesnt seem to help.
Cheers
Ck
Chris Kempster
www.chriskempster.com
Author of "SQL Server Backup, Recovery & Troubleshooting"
Author of "SQL Server 2k for the Oracle DBA"
Post #10686
Rodrigo Acosta
Rodrigo Acosta
Posted Wednesday, March 19, 2003 7:14 AM
SSCommitted
Group: General Forum Members
Last Login: Friday, October 30, 2009 7:22 AM
Points: 1,581,
Visits: 3
DBCC IND doesn't seems to work either.
Post #56595
ckempste
ckempste
Posted Wednesday, March 19, 2003 7:28 AM
SSC Eights!
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
DBCC EXTENTINFO
ill see what this can do for me.
Chris Kempster
www.chriskempster.com
Author of "SQL Server Backup, Recovery & Troubleshooting"
Author of "SQL Server 2k for the Oracle DBA"
Post #56596
Rodrigo Acosta
Rodrigo Acosta
Posted Wednesday, March 19, 2003 7:38 AM
SSCommitted
Group: General Forum Members
Last Login: Friday, October 30, 2009 7:22 AM
Points: 1,581,
Visits: 3
I didn't know this dbcc command. Can you post the parameters?
Post #56597
ckempste
ckempste
Posted Wednesday, March 19, 2003 4:51 PM
SSC Eights!
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
From the www.transactsql.com site, great t-sql reference over the books online:
DBCC EXTENTINFO ('@dbname', '@tablename', @indid)
Example
--Display information about the extents in the authors table
--Clean up the display
SET NOCOUNT ON
--List information about the first index in the authors table
DBCC EXTENTINFO ('pubs', 'authors',1)
--List information about all the indexs in the authors table
DBCC EXTENTINFO ('pubs', 'authors')
--List information about all the indexs in the pubs database
DBCC EXTENTINFO ('pubs')
GO
This didnt do it for me, I believe the extent number must be embedded in the header pages that bitmap off the free and used extents, but even so, im still unsure how to extract this info. The command above is close to useless really in terms of extent numbering (logical or physical).
Chris Kempster
www.chriskempster.com
Author of "SQL Server Backup, Recovery & Troubleshooting"
Author of "SQL Server 2k for the Oracle DBA"
Post #56598
ckempste
ckempste
Posted Wednesday, March 19, 2003 6:17 PM
SSC Eights!
Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885,
Visits: 1
Hi all
I believe the key is in dbcc page with the:
Allocation Status
-----------------
GAM (1:2) = ALLOCATED
GAM pages record what extents have been allocated. Each GAM covers 64,000 extents, or nearly 4 GB of data. The GAM has one bit for each extent in the interval it covers. If the bit is 1, the extent is free; if the bit is 0, the extent is allocated.
The key is clearly identifying the GAM page.
Chris Kempster
www.chriskempster.com
Author of "SQL Server Backup, Recovery & Troubleshooting"
Author of "SQL Server 2k for the Oracle DBA"
Post #56599
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.