SQL Server中的dbcc ind命令用法
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/37724/viewspace-1021252/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- SQL Server中的dbcc page命令用法SQLServer
- Sql Server系列:DBCC命令SQLServer
- SQL SERVER DBCC命令解釋SQLServer
- [zt] SQL Server管理員必備的DBCC用法SQLServer
- SQL Server中的未文件化的dbcc命令(適用於SQL Server 2000)SQLServer
- 一些文件中沒有介紹的SQL Server DBCC命令SQLServer
- sql server dbcc常用命令使用詳解SQLServer
- SQL Server資料庫管理員必備的DBCC命令SQLServer資料庫
- SQL Server中@@ROWCOUNT的用法SQLServer
- SQL Server中distinct的用法SQLServer
- 利用DBCC PAGE檢視SQL Server中的表和索引資料SQLServer索引
- SQL Server中的鎖型別及用法SQLServer型別
- sql server with ...as 用法SQLServer
- SQL server 中SUBSTRING()以及CONVERT()的用法SQLServer
- 得到SQL Server 2008的包括未文件化的所有dbcc命令列表及其語法SQLServer命令列
- DBCC 命令列表命令列
- Sql server with as update用法SQLServer
- sql server merge 的用法SQLServer
- Sql server 2005中output用法解析SQLServer
- Sql Server之旅——第五站 確實不得不說的DBCC命令(文後附年會福利)SQLServer
- sql server convert用法SQLServer
- Sql Server Rollup 語句的用法SQLServer
- SQL Server中row_number函式的常見用法SQLServer函式
- 用sql語句dbcc log 檢視SQL Server 資料庫的事務日誌SQLServer資料庫
- SQL 中With as 的用法SQL
- sql server select case when的用法SQLServer
- 初探SQL Server CE + Codesmith用法SQLServerMIT
- sql server 2005中的分割槽函式用法(partition by 欄位)SQLServer函式
- SQL Server中,WITH AS的使用SQLServer
- SQL中的遞迴用法SQL遞迴
- SQL中Merge的用法SQL
- 轉 sql 中 case 的用法SQL
- cmd命令列下用命令執行SQL指令碼到SQL Server資料庫中命令列SQL指令碼Server資料庫
- Microsoft Sql Server 命令彙總ROSSQLServer
- SQL Server資料庫中Substring函式的用法例項詳解SQLServer資料庫函式
- aix中read命令的用法AI
- linux 中 date命令的用法Linux
- SQL server中的NULL值SQLServerNull