Download Database - National Instruments

Transcript
Chapter 5
SQL Toolkit Library Reference — DBGetColBinaryBuffer
DBGetColBinaryBuffer
int status = DBGetColBinaryBuffer (int statementHandle, int columnNumber,
void *value, int bufferLength);
Purpose
Gets a binary value from the current record into a buffer. Instead of binding values and then
fetching a record, you can fetch a record and then use DBGetColBinaryBuffer.
Note
You can use DBGetColBinaryBuffer while you use binding or mapping for
other fields/columns.
Parameters
Input
Name
Type
Description
statementHandle
integer
Handle to the SQL statement from
DBActivateMap, DBActivateSQL, or any
of the functions that return a statement
handle.
columnNumber
integer
Field/column number within the record that
is the source of the value. The first column
number is 1.
bufferLength
integer
Length of the buffer.
Output
Name
value
Type
Description
void pointer
Buffer that receives the value from the
specified field/column in the record.
Return Value
Name
status
Type
Description
integer
LabWindows/CVI SQL Toolkit Reference Manual
Result code that DBGetColBinaryBuffer
returns. This function returns the set of result
codes listed in the function description for
DBError. Use DBErrorMessage to obtain
the text of the error message.
5-88
© National Instruments Corporation