ODAC

TCustomDAConnection.InTransaction Property

Indicates whether the transaction is active.

Class

TCustomDAConnection

Syntax

property InTransaction: boolean;

Remarks

Examine the InTransaction property at runtime to determine whether user transaction is currently in progress. In other words InTransaction is set to True when user explicitly calls StartTransaction. Calling Commit or Rollback sets InTransaction to False. The value of the InTransaction property cannot be changed directly.

Important note: The InTransaction property always shows actual user transaction state on the server. This means that if transaction was implicitly ended by server-side logic, InTransaction becomes False.

See Also

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