With the Validation utility you can validate all indexes and keys on some or all of the tables in the database. The Validation utility scans the entire table, and looks up each record in every index and key defined on the table.
This utility can be used in combination with regular backups (see the chapter "Backup and Data Recovery") to give you confidence in the security of the data in your database.
You can access the Validation utility in the following ways:
For more information on validating tables, see "VALIDATE TABLE statement".
For full information on validating a database from Sybase Central, see the Sybase Central online Help.
The syntax for the Validation utility from the ISQL DBTOOL statement is as follows:
DBTOOL VALIDATE TABLES [ t1, t2, ..., tn ]
... USING connection-string
dbvalid[switches] [table-name,...]
dbvalidw [switches] [table-name,...]
Switch | Description |
---|---|
-c"keyword=value; ..." | Supply database connection parameters |
-q | Quiet mode---do not print messages |
For more information about the command-line switches, see "Validation utility options".
Connection parameters (-c ) For a description of the connection parameters, see "Database connection parameters". If the connection parameters are not specified, connection paremeters from the SQLCONNECT environment variable are used, if set. The user ID must have DBA authority.
example, the following validates the sample database, connecting as user dba with password sql:
dbvalid -c "uid=dba;pwd=sql;dbf=c:\sqlany50\sademo.db"
Operate quietly (-q ) Do not display messages on a window. This option is available only from the command-line utility.