Informix Error -11005: Invalid connection string attribute.
Cause and resolution
Invalid connection string attribute.
Specified connection string attribute is unsupported for SQLBrowseConnect and SQLDriverConnect. Check the list of valid attributes.
This Informix CLI error code is the same as SQLSTATE value 01S00. The following functions can return this error code: SQLBrowseConnect() and SQLDriverConnect().
For SQLBrowseConnect(), the function returned SQL_NEED_DATA, which means that either the connection string contains an invalid attribute keyword, or the connection string contains an attribute keyword that does not apply to the current connection level. Set each attribute keyword in the connection string to a valid value that applies to the current connection level.
For SQLDriverConnect(), the function returned SQL_SUCCESS_WITH_INFO, which means that the function completed successfully, and that a nonfatal error occurred. The nonfatal error occurred because the connection string contains an invalid attribute keyword, but Informix CLI connected to the data source anyway. For more information, call SQLError().
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11005 fires when SQLBrowseConnect()/SQLDriverConnect() receives a connection string
with an unsupported attribute — per the official guidance, this is the same as SQLSTATE
value 01S00.
- For
SQLBrowseConnect(): an invalid attribute keyword, or one that doesn't apply to the current connection level, per the official guidance — the function returnsSQL_NEED_DATA. - For
SQLDriverConnect(): an invalid attribute keyword, though the driver connects anyway, per the official guidance — the function returnsSQL_SUCCESS_WITH_INFO.
Solutions / Resolution
- Set each connection-string attribute keyword to a valid value for the current connection level, per the official guidance.
- For
SQLDriverConnect(), callSQLError()for the nonfatal warning's full text, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an unsupported connection-string attribute keyword.
Diagnostic Checks
- Check the list of valid connection-string attributes, and correct any keyword that doesn't apply to the current connection level.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11005 in this set yet.
A connection string contains an invalid or inapplicable attribute keyword — check the list of valid attributes for the current connection level.