Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Database Tools Interface » Exit codes

 

Software component exit codes

All database tools are provided as entry points in a DLL. These entry points use the following exit codes. The SQL Anywhere utilities (dbbackup, dbspawn, dbeng11, and so on) also use these exit codes.

Code Status Explanation
0 EXIT_OKAY Success
1 EXIT_FAIL General failure
2 EXIT_BAD_DATA Invalid file format
3 EXIT_FILE_ERROR File not found, unable to open
4 EXIT_OUT_OF_MEMORY Out of memory
5 EXIT_BREAK Terminated by the user
6 EXIT_COMMUNICATIONS_FAIL Failed communications
7 EXIT_MISSING_DATABASE Missing a required database name
8 EXIT_PROTOCOL_MISMATCH Client/server protocol mismatch
9 EXIT_UNABLE_TO_CONNECT Unable to connect to the database server
10 EXIT_ENGINE_NOT_RUNNING Database server not running
11 EXIT_SERVER_NOT_FOUND Database server not found
12 EXIT_BAD_ENCRYPT_KEY Missing or bad encryption key
13 EXIT_DB_VER_NEWER Server must be upgraded to run database
14 EXIT_FILE_INVALID_DB File is not a database
15 EXIT_LOG_FILE_ERROR Log file was missing or other error
16 EXIT_FILE_IN_USE File in use
17 EXIT_FATAL_ERROR Fatal error or assertion occurred
255 EXIT_USAGE Invalid parameters on the command line

These exit codes are contained in the install-dir\sdk\include\sqldef.h file.