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