Retrieving Bookmarks
Bookmarks are returned as column 0 of the result set. There are three ways an
application can retrieve them:
Bind column 0 of the result set. SQLFetch or SQLFetchScroll returns the bookmarks for each row in the rowset along with the data for
other bound columns.
Call SQLSetPos to position to a row in the rowset, then call SQLGetData for column 0. Note that if a driver supports bookmarks, it must always
support the ability to call SQLGetData for column 0, even if it does not allow applications to call SQLGetData for other columns before the last bound column.
Call SQLBulkOperations with the Operation argument set to SQL_ADD, and column 0 bound. The cursor inserts the row and
returns the bookmark for the row in the bound buffer.