Informix Error -11035: Syntax error or access violation.
Cause and resolution
Syntax error or access violation.
This Informix CLI error code is the same as SQLSTATE value 37000. The following functions can return this error code: SQLExecDirect(), SQLNativeSql(), and SQLPrepare().
The argument szSqlStr contains an SQL statement that is not preparable or contains a syntax error. Check the syntax of the SQL statement and make any necessary corrections.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11035 fires when an SQL statement isn't preparable or contains a syntax error — per the
official guidance, this is the same as SQLSTATE value 37000, returnable by
SQLExecDirect(), SQLNativeSql(), and SQLPrepare().
- A syntax error in the SQL statement, per the official guidance — the first named case.
- A statement that isn't preparable at all, per the official guidance — the second named case.
Solutions / Resolution
- Check the syntax of the SQL statement and make any necessary corrections, per the official guidance.
Examples
N/A
No specific triggering statement is documented beyond a syntax error or non-preparable statement.
Diagnostic Checks
- Review the SQL statement text for syntax errors, and confirm it's a statement type that can be prepared.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11035 in this set yet.
The SQL statement has a syntax error or isn't preparable — review its text for correctness.