Show: Delphi C++
Display Preferences

FireDAC.Comp.Client.TFDConnection.Params

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Params: TFDConnectionDefParams read GetParams write SetParams;

C++

__property Params;

Properties

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

Description

Lists the database connection parameters for the FireDAC connection definition associated with the connection object.

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

Lists the database connection parameters for the FireDAC connection definition associated with the connection object.

Use Params to list the DBMS's temporary connection definition parameters, such as server name, port, database, client character set, user name, and password. The possible set of parameters depends on the DBMS kind to connect to. 

Params is a list of string items, each representing a different DBMS connection definition parameter. If the ConnectionDefName property specifies a valid FireDAC connection definition, then the parameters, specified in Params, override the corresponding connection definition parameters. If an application needs to specify the connection definition parameters on-the-fly, then the application must fill in all the required connection definition parameters into Params

At design time, double-click a TFDConnection component to invoke the Connection editor and set Params.

Example

with FDConnection1.Params do begin
  Clear;
  Add('DriverID=Ora');
  Add('Database=ORA_920_APP');
  Add('User_Name=ADDemo');
  Add('Password=a');
end;
ADConnection1.Connected := True;

See Also

Personal tools
In Other Languages
Previous Versions
Assistance