SQLGetData() retrieves data for a single column in the current row of the result set. This is an alternative to SQLBindCol(), which transfers data directly into application variables on a call to SQLFetch(). SQLGetData() can also be used to retrieve large character based data in pieces.
SQLFetch() must be called before SQLGetData().
After calling SQLGetData() for each column, SQLFetch() is called to retrieve the next row.
SQLGetData() is identical to SQLGetCol(), both functions are supported for compatibility reasons.
SQLRETURN SQLGetData (SQLHSTMT hstmt, SQLSMALLINT icol, SQLSMALLINT fCType, SQLPOINTER rgbValue, SQLINTEGER cbValueMax, SQLINTEGER *pcbValue);