BeginTransaction() method

Returns a transaction object. Commands associated with a transaction object are executed as a single transaction. The transaction is terminated with a call to the Commit or Rollback methods.

Syntax
Visual Basic

Public Function BeginTransaction() As SATransaction
C#

public SATransaction BeginTransaction();
Return value

An SATransaction object representing the new transaction.

Remarks

To associate a command with a transaction object, use the SACommand.Transaction property.

See also