Sybase Central lets you run the Database Consistency Checker (dbcc), a set of utility commands that check the logical and physical consistency of a database. Use the dbcc commands:
As part of regular database maintenance (periodic checks run by a system administrator or database owner). These checks can detect, and often correct, errors before they affect a user’s ability to use Adaptive Server.
To determine the extent of possible damage after a system error has occurred.
Before backing up a database.
When you suspect that a database is damaged. For example, if using a particular table generates the message “Table corrupt,” use dbcc to determine if other tables in the database are also damaged.
This topic discusses the dbcc command options that deal with overall database consistency. It gives instructions for executing the commands and then describes each command.
Additional database command options enable you to check on the consistency of tables and indexes, and network I/O tasks.
A system administrator or database owner can execute database dbcc commands.
Checking database consistency
Select the icon of the database you want to check.
Select File | Check Consistency. The Check Consistency wizard opens. For details of the dbcc options, see “Consistency check options.”
Right-click the database icon and select Check Consistency from the shortcut menu.