FireDAC.Comp.Client.TFDConnection.ConnectionDefName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ConnectionDefName;

C++

__property ConnectionDefName = {default=0};

Properties

Type Visibility Source Unit Parent
property published
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDConnection

Description

The name of the connection definition to use.

FireDAC.Comp.Client.TFDConnection.ConnectionDefName inherits from FireDAC.Comp.Client.TFDCustomConnection.ConnectionDefName. All content below this line refers to FireDAC.Comp.Client.TFDCustomConnection.ConnectionDefName.

The name of the connection definition to use.

The ConnectionDefName property specifies the name of one of the existing connection definitions. The connection definition can be stored in ADConnectionDefs.ini or created dynamically. 

Note: Attempting to set ConnectionDefName when the Connected property is True raises an exception.

Example

FDConnection1.ConnectionDefName := 'ASA_Demo';
FDConnection1.Connected := True;

See Also