Navigation: Command Line Applications > CheckDB |
CheckDB verifies a database connection through ODBC to ensure that a connection to a database can be established. You can optionally also run a single SQL statement after a successful connection has been established. A connection can be specified either through a DSN (Data Source Name) or a connection string. The output from CheckDB can either be displayed in the command line or logged to the event log.
With CheckDB, you can verify that:
Return Code (%ERRORLEVEL%) CheckDB returns 0 when no errors have been encountered, and returns 1 if an error (e.g. database is unavailable, SQL query cannot execute) was encountered. Use event logging (/le) for detailed troubleshooting information.
Files checkdb(.exe)
Prerequisites OS X: iODBC Linux / FreeBSD: unixODBC
Supported Platforms Windows (64-bit version available) Linux FreeBSD OS X |