IBDAC

TDATransaction.StartTransaction Method

Begins a new transaction.

Class

TDATransaction

Syntax

procedure StartTransaction; virtual;

Remarks

Call the StartTransaction method to begin a new transaction against the database server. Before calling StartTransaction, an application should check the Active property. If TDATransaction.Active is True, indicating that a transaction is already in progress, a subsequent call to StartTransaction will raise EDatabaseError. An active transaction must be finished by call to Commit or Rollback before call to StartTransaction. Call to StartTransaction when connection is closed also will raise EDatabaseError.

Updates, insertions, and deletions that take place after a call to StartTransaction are held by the server until the application calls Commit to save the changes, or Rollback to cancel them.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback