The command indicated failed because no SQL cursor is currently open.
The server does not process the command.
Use the OPEN CURSOR command to first open a cursor.