Bound parameters failure (SQLBindParameter) using ODBC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bj?rn Terje Svennes

    Bound parameters failure (SQLBindParameter) using ODBC

    Using SQLBindParamete r, I bind buffers to a prepared statement. Next
    time this statement is used I just replace the values in the buffer
    (not calling SQLBindParamete r). This works fine when used within the
    same method. But the use of this statement can happen from several
    places in my code. When calling the statement a second time, the
    SQLExecute fails with return code SQL_NEED_DATA. The buffers are still
    valid and I haven't called anything else than
    SQLFreeStmt(the Statement, SQL_CLOSE) on the statement. Why does
    SQLExecute return SQL_NEED_DATA?
Working...