Statement's size limit is invalid

Error constant SQLE_INVALID_CURSOR_RANGE
ODBC 2 state 42000
ODBC 3 state 42000
Severity 15
SQLCODE -674
SQLSTATE 09W07
Sybase error code 13713
 Probable cause