Microsoft documentation (SQLPrepare - ODBC - "invalid cursor state")

Hi experts,

If you look online at the documentation for SQLPrepare under the error for "invalid cursor state", you'll see this explanation:

"(DM) A cursor was open on the StatementHandle, and SQLFetch or SQLFetchScroll had been called.
A cursor was open on the StatementHandle, but SQLFetch or SQLFetchScroll had not been called."

It sounds as if you're screwed either way...

Can anyone please tell me what that's supposed to mean??

Thanks!
Mike
mikexpertAsked:
Who is Participating?
 
Anthony PerkinsConnect With a Mentor Commented:
The part you may have skipped is:
the notation "(DM)" precedes the descriptions of SQLSTATEs returned by the Driver Manager.

In any case, why don't you tell us what is the real problem, as we could discuss all day the vagaries of MS documentation?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.