Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CRowset::Update 

Transmits any pending changes made to the current row since the last fetch or Update call on it.


HRESULT Update( 
   DBCOUNTITEM* pcRows = NULL, 
   HROW* phRow = NULL, 
   DBROWSTATUS* pStatus = NULL  
) throw( );

Parameters

pcRows

[out] A pointer to the location where Update returns the number of rows it attempted to update, if required.

phRow

[out] A pointer to the location where Update returns the handle of the row it attempted to update. No handle is returned if phRow is null.

pStatus

[out] A pointer to the location where Update returns the row status value. No status is returned if pStatus is null.

A standard HRESULT.

Transmits any pending changes made to the current row since that row was last fetched or updated (using Update or UpdateAll). You typically call SetData to set data values in columns in a row, and then call Update to transmit those changes.

This method requires the optional interface IRowsetUpdate, which might not be supported on all providers; if this is the case, the method returns E_NOINTERFACE. You must also set DBPROP_IRowsetUpdate to VARIANT_TRUE before calling Open on the table or command containing the rowset.

Community Additions

ADD
Show:
© 2015 Microsoft