| title | CBulkRowset::MoveToRatio | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | article | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | 86be60f5-9341-44c1-8e1e-9174c082d0d5 | |||||||||||||
| caps.latest.revision | 9 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Fetches rows starting from a fractional position in the rowset.
HRESULT MoveToRatio(
DBCOUNTITEM nNumerator,
DBCOUNTITEM nDenominator
) throw( );
nNumerator
[in] The numerator used to determine the fractional position from which to fetch data.
nDenominator
[in] The denominator used to determine the fractional position from which to fetch data.
A standard HRESULT.
MoveToRatio fetches the rows roughly according to the following formula:
( nNumerator * RowsetSize ) / nDenominator
Where RowsetSize is the size of the rowset, measured in rows. The accuracy of this formula depends on the specific provider. For details, see IRowsetScroll::GetRowsAtRatio in the OLE DB Programmer's Reference.
Header: atldbcli.h