Next Fetch Position

OLE DB and SQL Server

OLE DB and SQL Server

Next Fetch Position

The SQLOLEDB provider keeps track of the next fetch position so that a sequence of calls to the GetNextRows method (with no skips, changes of direction, or intervening calls to the FindNextRow, Seek, or RestartPosition methods) reads the entire rowset without skipping or repeating any row. The next fetch position is changed either by calling IRowset::GetNextRows, IRowset::RestartPosition, or IRowsetIndex::Seek, or by calling FindNextRow with a null pBookmark value. Calling FindNextRow with a nonnull pBookmark value has no effect on the next fetch position.

To fetch rows from a result set