Informix Error -11051: DRIVER keyword syntax error.
Cause and resolution
DRIVER keyword syntax error.
This Informix CLI error code is the same as SQLSTATE value IM012. The following functions can return this error code: SQLBrowseConnect() and SQLDriverConnect().
In the initialization file, the syntax for the line that sets the driver path is incorrect. The keyword-value pair for the DRIVER keyword contains a syntax error. Check that you entered the correct spelling and path for the driver.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11051 fires when the initialization file's DRIVER keyword-value pair has a syntax error —
per the official guidance, this is the same as SQLSTATE value IM012, returnable by
SQLBrowseConnect() and SQLDriverConnect().
- A syntax error in the line that sets the driver path, per the official guidance — the direct, only cause.
Solutions / Resolution
- Check the spelling and path entered for the driver, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a malformed DRIVER keyword-value
pair.
Diagnostic Checks
- Check the initialization file's
DRIVERline syntax, and confirm the driver's spelling and path are correctly formed.
Related Errors / Related Topics
- -11049 — "Data source name too long." A related initialization-file error, about length rather than syntax.
- -11050 — "Driver name too long." A related initialization-file error, about length rather than syntax.
The initialization file's DRIVER keyword-value pair has a syntax error — check its
spelling and path.