FireDAC.Comp.Script.TFDScript.Connection

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 Connection: TFDCustomConnection read FConnection write SetConnection;

C++

__property Firedac::Comp::Client::TFDCustomConnection* Connection = {read=FConnection, write=SetConnection};

Description

Specifies a connection object.

The Connection property value points to a connection object.

The Connection property value must be specified before the ExecuteXxx or ValidateXxx calls. When it is required, the connection object is activated. To control the transaction, the Transaction property can be used additionally.

The connection can be changed from the script using CONNECT <connection string command>.

See Also