Changing parameter bindings in CLI applications with offsets
When an application needs to change
parameter bindings, it can call
SQLBindParameter()
a second time.
This will change the bound parameter buffer
address and the corresponding length/indicator buffer address used.
Instead of multiple calls to SQLBindParameter()
,
however, CLI also
supports parameter binding offsets. Rather than re-binding each time,
an offset can be used to specify new buffer and length/indicator addresses
which will be used in a subsequent call to SQLExecute()
or SQLExecDirect()
.Before you begin
Procedure
To change parameter bindings by using offsets: