DPAGES helps to correct DPage inconsitencies between what is stored in
sysindexes and what DBCC actually calculates the true count to be.
In SQL Server 4.2 this problem is self correcting when running DBCC
CHECKDB, but currently in SQL Server 1.11 it is not.  This code also
offers a user a way to use an intelligent message handler for other
purposes.  For example, it could be modified so a database was
dumped if DBCC did not return an expected error message.

To learn how to use the progam enter from an OS/2 prompt:
    DPAGES /h

The basic flow of the program is:

1) issues a CHECKPOINT to insure all dirty writes are written to
   disk.  This is the only time DPage values are modified.

2) runs DBCC CHECKDB on the specified database.  DPAGES will build
   a link list of all objects that have DPage inconsistencies and
   what the correct value should be.

3) DPAGES then issues the update statement to correct the value
   in the sysindexes table.

Features:

DPAGES allows for a slash /o option for an output file.  This file
will contain all messages received by the message handler.  Therefore,
users can check to see if other problems might exist with their database
after DPages has completed.

Antoni Hathaway
SQL Server Support



*** NOTICE ***

   NO WARRANTY.  ANY USE BY YOU OF THE SOFTWARE IS AT YOUR OWN RISK.
   THE SOFTWARE IS PROVIDED FOR USE "AS IS" WITHOUT WARRANTY OF ANY KIND.
   MICROSOFT AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES OF ANY KIND, EITHER
   EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMINITATION, IMPLIED WARRANTIES
   OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  MICROSOFT WILL
   PROVIDE NO SUPPORT SERVICES FOR THIS SOFTWARE.

   NO LIABILITY FOR CONSEQUENTIAL DAMAGES.  In no event shall Microsoft or
   it suppliers be liable for any damages whatsoever (including, without
   limitation, damges for loss of business profits, business interruption,
   loss of business information, or other pecuniary loss) arising out of
   the use or inability to use this Microsoft product, even if Microsoft
   has been advised of the possibility of such damages.  Because some 
   states/jurisdictions do not allow the exclusion or limitation of
   liability for consequential or incidental damages, the above limitation
   may not apply to you.

   You may have additional rights, which vary from state/jurisdiction to
   state/jurisdiction.

