Can I call SQLExecute after SQLFreeStmt without SQLPrepare?

Posted by Priyank Bolia on Stack Overflow See other posts from Stack Overflow or by Priyank Bolia
Published on 2010-05-14T09:46:10Z Indexed on 2010/05/17 2:10 UTC
Read the original article Hit count: 250

Filed under:

I have the following sequence of code calls:

SQLPrepare
SQLExecute(hstmt, SQL_CLOSE);
SQLFreeStmt
//It works till here
SQLExecute //Now it fails.

Why am I required to call SQLPrepare again, I just freed the cursor. I shouldn't prepare the SQL statement again.

© Stack Overflow or respective owner

Related posts about odbc