ODBC Cursor Library
This topic is well documented in MSDN.However, we must stress the absolute requirement to use these statements before connecting:
// Specify that the ODBC Cursor Library is always used, then connect.
SQLSetConnectAttr( hdbc, SQL_ATTR_ODBC_CURSORS, (SQLPOINTER)SQL_CUR_USE_ODBC, 0 );
SQLConnect( hdbc, (UCHAR*)connectString, SQL_NTS, NULL, 0, NULL, 0 );
That data sets keys (?) in the rowset buffers.Updating the buffers requires this statement:
SQLFetchScroll( hstmtSel, SQL_FETCH_RELATIVE, 0 );