DBCC IND has three parameters. The first parameter is the database name or the database ID. The second parameter is the object name or object ID within the database. The third parameter is a specific index ID or one of the values 0, -1, or −2.
Here's the syntax:
DBCC IND ({'dbname' | dbid }, {
'objname' | objid }, { indid | 0 | -1 | -2 })| 0 | Displays the page numbers for all IAMs and data pages. |
| -1 | Displays the page numbers for all IAMs, data pages, and index pages. |
| -2 | Displays the page numbers for all IAMs. |
| indid | Displays the page numbers for all IAMs and index pages for this index. If the index ID is 1 (meaning the clustered index), the data pages are also displayed. |
The columns mean:
PageFID - the file ID of the page
PagePID - the page number in the file
IAMFID - the file ID of the IAM page that maps this page (this will be NULL for IAM pages themselves as they're not self-referential)
IAMPID - the page number in the file of the IAM page that maps this page
ObjectID - the ID of the object this page is part of
IndexID - the ID of the index this page is part of
PartitionNumber - the partition number (as defined by the partitioning scheme for the index) of the partition this page is part of
PartitionID - the internal ID of the partition this page is part of
iam_chain_type - see IAM chains and allocation units in SQL Server 2005
PageType - the page type. Some common ones are:
1 - data page
2 - index page
3 and 4 - text pages
8 - GAM page
9 - SGAM page
10 - IAM page
11 - PFS page
IndexLevel - what level the page is at in the index (if at all). Remember that index levels go from 0 at the leaf to N at the root page (except in clustered indexes in SQL Server 2000 and 7.0 - where there's a 0 at the leaf level (data pages) and a 0 at the next level up (first level of index pages))
NextPageFID and NextPagePID - the page ID of the next page in the doubly-linked list of pages at this level of the index
PrevPageFID and PrevPagePID - the page ID of the previous page in the doubly-linked list of pages at this level of the index[@more@]
编辑推荐:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- AutoCAD中式建筑模型烛台的画法
AutoCAD中式建筑模型烛台的画法
26-03-02 - word2007如何将自选图形对齐
word2007如何将自选图形对齐
26-03-02 - word2007怎么设置下拉菜单
word2007怎么设置下拉菜单
26-03-02 - 原来MSSQL还可以这样调优
原来MSSQL还可以这样调优
26-03-02 - SQL Server 检测字符串中是否有重复字符的函数
SQL Server 检测字符串中是否有重复字符的函数
26-03-02 - AutoCAD三维教程:南非世界杯足球的画法及渲染
AutoCAD三维教程:南非世界杯足球的画法及渲染
26-03-02 - 关于记录数的疑问
关于记录数的疑问
26-03-02 - 文件的导入导出
文件的导入导出
26-03-02 - CAD三维绘图教程:用中望3D绘制修正液教程
CAD三维绘图教程:用中望3D绘制修正液教程
26-03-02 - word2007中进行设置安全密码的操作方法
word2007中进行设置安全密码的操作方法
26-03-02
