471,889 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,889 software developers and data experts.

Bound parameters failure (SQLBindParameter) using ODBC

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?
Jul 20 '05 #1
0 1672

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Zlatko Matić | last post: by
2 posts views Thread by =?Utf-8?B?TXIgQg==?= | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.