After calling SQLExecDirect() with a successful
UPDATE statement and SQLNumResultCols() to
determine column count (of course 0 here) I call
SQLCloseCursor() and SQLFreeStmt().
The following SQLExecDirect() with a SELECT...
results in an ODBC error "Invalid cursor state". Why?
Have I missed something fundamental here?
Several SQLExecDirect with "SELECT ..." and subsequent
calls to SQLBindCol(), SQLFetch(), SQLCloseCursor() and
SQLFreeStmt()works fine.
I use SQL Server 7.0 w. driver 3.70 / ODBC 3.51
Thankful for any hints.
Please respond to this group.
Ebbe Nilsson, Minneapolis