IRowsetScroll is supported on ODBC 3.x drivers. If a driver cannot determine the current row position, a value of 1 is returned for the row number in GetApproximatePosition.
If the ODBC driver supports the SQL_DIAG_CURSOR_ROW_COUNT diagnostic identifier, the two methods GetApproximatePosition and GetRowsAtRatio (which are methods of IRowsetScroll), are implemented. Depending on the type of cursor, GetInfo methods can be called to determine whether the row count is exact or approximate.
This topic is a part of: