Fetching Rows with SQLBulkOperations
To perform bulk fetches with SQLBulkOperations, the application:
2 Sets the SQL_ATTR_ROW_ARRAY_SIZE statement attribute to the number of rows to
fetch, and binds the buffer containing the bookmark value, or the array of
bookmarks, to column 0.
3 Sets the value in the length/indicator buffer of each column as necessary.
This is the byte length of the data or SQL_NTS for columns bound to string
buffers, the byte length of the data for columns bound to binary buffers, and
SQL_NULL_DATA for any columns to be set to NULL. The application sets the value in the
length/indicator buffer of those columns which are to be set to their default
(if one exists) or NULL (if one does not) to SQL_COLUMN_IGNORE.
4 Calls SQLBulkOperations with the Operation argument set to SQL_FETCH_BY_BOOKMARK.