SQLBindCol
Function
Binds application data buffers to the columns in the result set.
Syntax
c
SQLRETURN SQLBindCol(SQLHSTMT StatementHandle,
SQLUSMALLINT ColumnNumber,
SQLSMALLINT TargetType,
SQLPOINTER TargetValuePtr,
SQLLEN BufferLength,
SQLLEN *StrLen_or_IndPtr);Parameters
Table 1 SQLBindCol parameters
Return Values
SQL_SUCCESS: The call is successful.
SQL_SUCCESS_WITH_INFO: Some warning information is present.
SQL_ERROR: The data buffer failed to be bound.
SQL_INVALID_HANDLE: The input handle is invalid.
Example
See: Example