FireDAC.Comp.Client.TFDCustomConnection.ConnectionString
Delphi
property ConnectionString: String read GetConnectionString write SetConnectionString;
C++
__property System::UnicodeString ConnectionString = {read=GetConnectionString, write=SetConnectionString};
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FireDAC.Comp.Client.pas FireDAC.Comp.Client.hpp |
FireDAC.Comp.Client | TFDCustomConnection |
Description
Specifies a FireDAC connection string.
Use the ConnectionString property to read or write a FireDAC connection string. This is a convenient way to specify connection definition parameters for some applications. The property is not published and can be used only at run time.
Writing the ConnectionString property value implicitly modifies the Params property value.
Reading the ConnectionString property value uses the Params property to represent a connection string.
The connection string is in the following form: param1=value1;...;paramN=valueN
.
Example
FDConnection1.ConnectionString := 'DriverID=SQLite;Database=$(DOC)/mydb.sdb';
FDConnection1.Connected := True;