The command indicated failed because an SQL cursor is already open.
The server does not process the command.
Use the CLOSE CURSOR command to first close the current cursor.