Using SQLBindParameter, I bind buffers to a prepared statement. Next
time this statement is used I just replace the values in the buffer
(not calling SQLBindParameter). 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(theStatement, SQL_CLOSE) on the statement. Why does
SQLExecute return SQL_NEED_DATA?