ADO » DataFactory » SubmitChanges

Syntax:
datafactoryobject.SubmitChanges ConnectionString, Recordset
ConnectionString
The ConnectionString parameter is a string that contains the details of the connection.
Recordset
The Recordset parameter is the Recordset object that contains pending changes that you want to submit to the database.


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. Applications that use RDS should migrate to WCF Data Service.

The SubmitChanges method is deprecated in ADO.

Sends all of the pending changes in the locally cached Recordset object down to the underlying data source.

The SubmitChanges method is called to submit to the database pending changes that are in a locally cached and updateable Recordset object. Only the actual changes are submitted. Either all of the changes are successfully added to the database or none of the changes are added.

There are two mandatory parameters.

Examples

Code:
objDataFactory.SubmitChanges strConnection, objRecordset

See Also: