Informix Error -11046: No data source or driver specified; dialog prohibited.
Cause and resolution
No data source or driver specified; dialog prohibited.
This Informix CLI error code is the same as SQLSTATE value IM007. The following function can return this error code: SQLDriverConnect().
The connection information flag, fDriverCompletion, is SQL_DRIVER_NOPROMPT, but the connection string does not provide enough information. Ensure that the driver keyword is in the connection string, or set the fDriverCompletion flag to SQLDriver prompt to have the driver prompt for additional connection information.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11046 fires when SQLDriverConnect() is called with fDriverCompletion set to
SQL_DRIVER_NOPROMPT, but the connection string lacks enough information — per the official
guidance, this is the same as SQLSTATE value IM007.
fDriverCompletionset toSQL_DRIVER_NOPROMPTwhile the connection string omits required information (such as theDRIVERkeyword), per the official guidance — the direct, only cause.
Solutions / Resolution
- Ensure the
DRIVERkeyword is present in the connection string, per the official guidance, or - Set
fDriverCompletionto prompt the driver for the missing information, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond an incomplete no-prompt connection string.
Diagnostic Checks
- Check the connection string for a
DRIVERkeyword, and check thefDriverCompletionflag's value.
Related Errors / Related Topics
- -11047 — "Dialog failed." A related connection-completion error, about the prompt dialog itself failing to display rather than prompting being prohibited.
A no-prompt connection was attempted without enough connection-string information — add the
DRIVER keyword or allow prompting.