ODAC

TOraTransaction.StartTransaction Method

Begins a new user transaction against the database server.

Class

TOraTransaction

Syntax

procedure StartTransaction(Resume: boolean); reintroduce; overload;

Parameters
Resume
True, if detached transaction branches will be resumed on sessions. False otherwise.

Remarks

Call the StartTransaction method to begin a new user transaction against the database server. Before calling StartTransaction, an application should check the status of the TOraTransaction.Active property. If TOraTransaction.Active is True, it indicates that a transaction is already in progress, a subsequent call to StartTransaction without first calling TDATransaction.Commit or TDATransaction.Rollback to end the current transaction raises EDatabaseError. Calling StartTransaction when connection is closed also raises EDatabaseError.

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

Setting the Resume parameter to True means detached transaction branches will be resumed on sessions.

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