In this blog post, you’ll learn more about the Sybase Error Error opening cursor and the reason for receiving this error
Sybase SQL Error Message
Error opening cursor
Reason for this Error
You attempted to open a cursor on a statement that is not SELECT, CALL or EXEC.