Result set not permitted in '%1'

Item Value
SQLCODE -946
Constant SQLE_RESULT_SET_NOT_PERMITTED
SQLSTATE 09W03
Sybase error code 13542
ODBC 2 State 07005
ODBC 3 State 07005
Parameter 1 Name of object containing the invalid statement.

Probable cause 

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