Partager via


insertRows

Inserts a specified number of rows, beginning at iRow, into the data set.

Important

This feature will be removed in a future version of Windows. Avoid using this feature in new development work, and plan to modify applications that currently use this feature. Instead, write a fully functional OLE DB provider using the native OLE DB interfaces.

Syntax

HRESULT insertRows (
   DBROWCOUNT     iRow,
   DBROWCOUNT     cRows,
   DBROWCOUNT     *pcRowsInserted);

Parameters

  • iRow
    [in] Position of the first row of the data set at which the insertion begins.

  • cRows
    [in] Number of rows to be inserted.

  • *pcRowsInserted
    [out] Actual number of rows that were successfully inserted into the data set.

Return Codes

  • S_OK
    The method succeeded.

  • E_FAIL
    A provider-specific error occurred.

Comments

insertRows requires the following notifications:

For more information and programming considerations about sending and receiving notifications, see Notifications (OLE DB).