Informix Error -11004: Privilege not revoked.
Cause and resolution
Privilege not revoked.
This Informix CLI error code is the same as SQLSTATE value 01006. The following functions can return this error code: SQLExecDirect() and SQLExecute().
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 SQL statement or prepared statement contained a REVOKE statement, and the user does not have the access privilege to make this change. For more information, call SQLError().
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-11004 fires when SQLExecDirect()/SQLExecute() returns SQL_SUCCESS_WITH_INFO because a
REVOKE statement couldn't complete — per the official guidance, this is the same as
SQLSTATE value 01006.
- The executing user lacking the access privilege to make the
REVOKE'd change, per the official guidance — the direct, only cause.
Solutions / Resolution
- Call
SQLError()for the full warning text, per the official guidance. - Execute the
REVOKEas a user with sufficient privilege, per the official guidance's implication.
Examples
N/A
No specific triggering statement is documented beyond an under-privileged REVOKE.
Diagnostic Checks
- Call
SQLError()immediately after the function returnsSQL_SUCCESS_WITH_INFO, and confirm the executing user's privileges on the object the REVOKE targeted.
Related Errors / Related Topics
No closely related error codes are cross-referenced for -11004 in this set yet.
A REVOKE statement inside SQLExecDirect()/SQLExecute() couldn't complete because the
user lacks the privilege to make that change — call SQLError() for detail.