Informix Error -11044: Driver's SQLAllocConnect failed.
Cause and resolution
Driver's SQLAllocConnect failed.
This Informix CLI error code is the same as SQLSTATE value IM005. The following functions can return this error code: SQLBrowseConnect(), SQLConnect(), and SQLDriverConnect(). The function called the driver version of SQLAllocConnect(), which returned an error. The CLI driver does not return this error.
The allocation of a connection handle may fail due to insufficient memory or initialization of new Database Connection handle (DBC). See the error message returned by SQLError in the szErrorMsg to describe driver specific SQLSTATE or error message if returned for other reasons.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11044 fires when the driver manager's call to the driver's SQLAllocConnect() returns an
error — per the official guidance, this is the same as SQLSTATE value IM005, returnable by
SQLBrowseConnect(), SQLConnect(), and SQLDriverConnect(); the CLI driver itself does
not return this error.
- Insufficient memory, or a problem initializing the new database connection handle (DBC), per the official guidance — the named causes.
Solutions / Resolution
- Call
SQLError()to retrieve the driver-specific error message, per the official guidance, for the detail behind the failure.
Examples
N/A
No specific triggering statement is documented beyond a driver-level SQLAllocConnect()
failure.
Diagnostic Checks
- Call
SQLError()immediately after this error, and check system memory availability.
Related Errors / Related Topics
- -11043 — "Driver's SQLAllocEnv failed." The same class of driver-manager-level allocation failure, one step earlier in connection setup.
The driver manager's call to the driver's SQLAllocConnect() failed — call SQLError() for
the driver-specific detail.