0x00560023 (5636131) The state of the cursor is incorrect.

Explanation

The state of the cursor is incorrect. SQLExecute was called on a statement that is already in EXECUTE state. SQLFetch was called on a statement that has not been prepared or opened.

sqlstate: 24000

User response

Correct the state of the cursor.