RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TSQLConnection.LoadParamsOnConnect Property

Specifies whether the TSQLConnection component loads the configuration named by ConnectionName immediately before connecting to the server.

Pascal
property LoadParamsOnConnect: Boolean;
C++
__property Boolean LoadParamsOnConnect;

Set LoadParamsOnConnect to true if you want the TSQLConnection object to load the connection configuration (DriverName and Params properties) associated with ConnectionName at runtime. Typically, this is unnecessary because when you set ConnectionName at design time, the DriverName and Params properties are automatically set as well. However, if you use a different dbxconnections.ini file at runtime, or if you temporarily override the DriverName or any connection parameter values at design time, setting LoadParamsOnConnect to true ensures that at runtime the connection is established using the configuration associated with ConnectionName in the dbxconnections.ini file.

Note: If you set LoadParamsOnConnect to true, you must be sure to deploy the dbxconnections.ini
file with your application. When you rely on the design-time associations, dbxconnections.ini is not needed at runtime.
Warning: If you set LoadParamsOnConnect to true, you must specify a valid connection name as the value for ConnectionName.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!