Informix Error -11049: Data source name too long.
Cause and resolution
Data source name too long.
This Informix CLI error code is the same as SQLSTATE value IM010. The following functions can return this error code: SQLBrowseConnect() and SQLDriverConnect().
A data source name that is in the initialization file is too long. Change any data source name that is too long.
-11049 Data source name too long.
The attribute value for DSN name is more than the maximum number of characters. For the accepted number of characters in the DSN name, check the Informix CLI Programmer's Manual.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11049 fires when a data source name in the initialization file is too long — per the
official guidance, this is the same as SQLSTATE value IM010, returnable by
SQLBrowseConnect() and SQLDriverConnect().
- A data source name in the initialization file exceeding the allowed length, per the official guidance — the direct, only cause.
Solutions / Resolution
- Change any data source name that's too long, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an over-length data source name.
Diagnostic Checks
- Check the data source names in the initialization file, and shorten any that exceed the allowed length.
Related Errors / Related Topics
- -11050 — "Driver name too long." The same class of over-length-identifier error, for
the
DRIVERkeyword rather than the data source name.
A data source name in the initialization file is too long — shorten it.