FireDAC.Comp.Client.TFDConnection.ConnectionDefName

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property ConnectionDefName;

C++

__property ConnectionDefName = {default=0};

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