|
AnyDAC
|
Lists database connection parameters for the AnyDAC connection definition associated with the connection object.
Use Params to list DBMS connection definition parameters, such 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 AnyDAC connection definition, then parameters, specified in Params, will override corresponsding connection definition parameters. If an application need to specify connection definition parameter on-fly, then an application must fill-in all required connection definition parameter into Params.
At design time double-click a TConnection component to invoke the Connection editor and set Params.
property Params: TStrings;
with ADConnection1.Params do begin Clear; Add('DriverID=Ora'); Add('Database=ORA_920_APP'); Add('User_Name=ADDemo'); Add('Password=a'); end; ADConnection1.Connected := True;
|
What do you think about this topic? Send feedback!
|