API:FireDAC.Comp.Client.TFDCommand.ConnectionName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ConnectionName: string read FConnectionName write SetConnectionName stored IsCNNS default 0;

C++

__property ConnectionName = {default=0};

Properties

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

Description

Specifies the name of the connection.

FireDAC.Comp.Client.TFDCommand.ConnectionName inherits from FireDAC.Comp.Client.TFDCustomCommand.ConnectionName. All content below this line refers to FireDAC.Comp.Client.TFDCustomCommand.ConnectionName.

Specifies the name of the connection.

The value of the ConnectionName property specifies the name of the connection. It must match the:

  • Name of one of connection definitions, either stored in the external file or created on the fly.
  • ConnectionName of one of the TFDConnection objects.

Alternatively it may be specified by the value of the Connection property. The value of the ConnectionName property must be specified before calling Prepare. If it is specified by the name of one of the connection definitions, then FireDAC will transparently create a connection object and link it with the command.

See Also