INF: Description of the DBCC PGLINKAGE CommandID: Q83115
|
The information below is an elaboration on Sybase's description of the
database consistency checker (DBCC) commands (taken from the Sybase
internals course "SQL Server Diagnostic Manual").
This article discusses some basic tips and instructions on how to use
the DBCC PGLINKAGE command.
NAME: DBCC PGLINKAGE
VERSIONS DBCC PGLINKAGE AVAILABLE IN:
DBCC PGLINKAGE is available in versions 1.1x and 4.2 of SQL Server.
FUNCTION:
DBCC PGLINKAGE follows a SQL server's page linkage. Starting with a
pre-specified page, it will either follow the next page pointer or
the previous page pointer. Options exist that will print all page
numbers that are being traversed by PGLINKAGE. If there is a break
before the end of a chain, PGLINKAGE will show were the break is.
SYNTAX:
dbcc pglinkage( dbid, start, number, print option, target, order)
PARAMETERS:
dbid - Enter the database ID of the database in which the page
chain is to be followed.
start - This is the page number in decimal, where to start
following the chain.
number - Enter the number of pages to be followed. Enter a 0 if the
chain is to be followed to the end. Also, enter a 0 if the
target (see below) parameter is specified.
print option - Print option can either be 0, 1, or 2.
0 - With this option, all that is displayed is the
number of pages that were scanned.
1 - This option will display the last 16 page
numbers of pages that were found to be in the
chain.
2 - This option will print out the page number of
every page traversed in the chain.
target - If a number other than 0 is entered for this option,
PGLINKAGE will follow the page chain until this page
number is reached or the end of the chain is reached.
order - Enter a 0 for this option if previous page pointers are to
be followed. Enter a 1 if next page pointers are to be
followed.
Additional query words: Windows NT
Keywords : kbusage SSrvServer SSrvWinNT
Version : OS/2:4.2; winnt:4.2x,6.0,6.5
Platform : OS/2 winnt
Issue type :
Last Reviewed: July 26, 1999