FireDAC.Comp.Client.TFDCustomConnection.Params

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

property Params: TFDConnectionDefParams read GetParams write SetParams;

C++

__property Firedac::Stan::Intf::TFDConnectionDefParams* Params = {read=GetParams, write=SetParams};

Description

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