Indicates whether the transaction is active.
property InTransaction: boolean;
Examine the InTransaction property at runtime to determine whether a user transaction is currently in progress. In other words, InTransaction is set to True when the user explicitly calls StartTransaction. Calling Commit or Rollback sets InTransaction to False. The value of the InTransaction property cannot be changed directly.
Note: This property reflects the transaction state on the client application side and may not match the actual transaction state on the server.