in reply to Re: ODBC Error - Invalid Cursor State (SQL-24000)
in thread ODBC Error - Invalid Cursor State (SQL-24000)
I ran into the same Invalid Cursor State (SQL-24000) error while using freetds. The only way I could get my program to run error-free was to connect and disconnect from the database for every iteration through a while loop. Ugly, bad form, abhorrent, yes, but it works.
It seems that this points to an incorrect reset of the cursor when a statement handle is finished running, though I've no clue how to fix it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: ODBC Error - Invalid Cursor State (SQL-24000)
by Anonymous Monk on Mar 18, 2011 at 19:32 UTC | |
by mje (Curate) on Mar 21, 2011 at 10:16 UTC |