Illegal cursor operation attempt

Error constant SQLE_CURSOROP_NOT_ALLOWED
ODBC 2 State 07005
ODBC 3 State 07005
Severity 16
SQLCODE –187
SQLSTATE 09W02
Sybase error code 9526
Probable cause

You attempted an illegal cursor operation. For example, you may be attempting to OPEN a cursor for a statement that is neither a SELECT nor a BATCH.