Result set not permitted in '%1'

Error constant SQLE_RESULT_SET_NOT_PERMITTED
ODBC 2 State 07005
ODBC 3 State 07005
Parameter 1 Name of object containing the invalid statement.
Severity 16
SQLCODE –946
SQLSTATE 09W03
Sybase error code 13542
Probable cause

You attempted to execute a SELECT statement in a context where a result set is not permitted.