FireDAC.Comp.Script.TFDScript.Transaction

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: published
Source:
FireDAC.Comp.Script.pas
FireDAC.Comp.Script.hpp
Unit: FireDAC.Comp.Script
Parent: TFDScript

Delphi

property Transaction: TFDCustomTransaction read FTransaction write SetTransaction;

C++

__property Firedac::Comp::Client::TFDCustomTransaction* Transaction = {read=FTransaction, write=SetTransaction};

Description

Specifies a transaction object.

The Transaction property value points to a transaction object. The SQL commands, executed by the script engine, are prepared and executed in the context of this transaction. The Transaction property value must be specified before the ExecuteAll or ExecuteStep calls. If a value is not specified, then the commands use a default transaction object, specified at TFDCustomConnection.Transaction, or an internal connection transaction object.

See Also