SQLGetData in the Cursor Library
Caution The WHERE clause constructed by the cursor library to identify the current row can fail
to identify any rows, identify a different row, or identify more than one row.
For more information, see
If the SQL_ATTR_USE_BOOKMARKS statement attribute is set to SQL_UB_VARIABLE, SQLGetData can be called on column 0 to return bookmark data.
Calls to SQLGetData are subject to the following restrictions:
SQLGetData cannot be called for forward-only cursors.
SQLGetData can only be called when a SELECT statement generated the result set, the SELECT statement did not contain a join, a UNION clause, or a GROUP BY clause, and any columns that used an alias or expression in the select list
were not bound with SQLBindCol.
If the driver supports only one active statement, the cursor library fetches
the rest of the result set before executing the SELECT statement and calling SQLGetData.