8311   Invalid cursor state

Cause

This error occurs if SQLCursor has been called when no cursor is open on the statement.

Action

Ensure that a cursor is open on the statement before SQLCursor is called.