SQLGetData
Function
Returns data from a specified column in the result set. It can be called multiple times to retrieve variable-length data in parts.
Prototype
c
SQLRETURN SQLGetData(SQLHSTMT StatementHandle,
SQLUSMALLINT Col_or_Param_Num,
SQLSMALLINT TargetType,
SQLPOINTER TargetValuePtr,
SQLLEN BufferLength,
SQLLEN *StrLen_or_IndPtr);Parameters
Table 1 SQLGetData parameters
Return Values
SQL_SUCCESS: The call is successful.
SQL_SUCCESS_WITH_INFO: Some warning information is present.
SQL_ERROR: Column data failed to be fetched from the result set.
SQL_NO_DATA: The SQL statement does not return a result set.
SQL_INVALID_HANDLE: The input handle is invalid.
Example
See: Example