All database tools library entry points use the following exit codes. The SQL Anywhere utilities (dbbackup, dbspawn, dbeng12, 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 occurred |
| 18 | EXIT_MISSING_LICENSE_FILE | Missing server license file |
| 19 | EXIT_BACKGROUND_SYNC_ABORTED | Background synchronization aborted to allow higher priority operations proceed |
| 20 | EXIT_FILE_ACCESS_DENIED | Database cannot be started because access is denied |
| 255 | EXIT_USAGE | Invalid parameters on the command line |
These exit codes are defined in the %SQLANY12%\sdk\include\sqldef.h file.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |