Commit

Description

Commits all database changes since the last commit.

Applies to

Web ActiveX Transaction Object control

Syntax

void transaction.Commit( )

Returns

None

Usage

If AutoCommit is set to true or 0, then transactions are committed immediately and calling the Commit method has no effect.

Examples

Example 1

This example updates the database and commits the transaction if no errors occurred:

dw_1.Update( );

if (trans_1.GetSQLCode( ) == 0) {

		trans_1.Commit( );

}

See also