VISOCO Support VISOCO Software Support
Joined: 16 Jul 2002 Posts: 96
|
Posted: Thu Apr 14, 2005 5:37 pm Post subject: "Custom String" configuration parameter |
|
|
A new configuration parameter is supported since version 2.0 (Delphi 7 and higher)
It can contain two keys: APPNAME and CONFIG_FILE.
For example, you can have something like this in TSQLConnection.Params:
| Code: |
BlobSize=1024
DataBase=SybaseServer:TestDB
LocaleCode=0000
Password=
User_Name=sa
Custom String=APPNAME=MyApp;CONFIG_FILE=C:\MyApp\sample.cfg
|
APPNAME simply defines a name of the application you will see on the server side.
CONFIG_FILE specifies a path to the external configuration file. All of the connection and query processing parameters can be tweaked via this file.
See Sybase documentation for more information http://sybooks.sybase.com/onlinebooks/group-cn/cng1250e/ctref (Chapter 2 Topics, Using the runtime configuration file)
Imagine, you have the following configuration file
| Code: |
[DEFAULT]
CS_TIMEOUT=45
[MyApp]
CS_TIMEOUT=30
|
Here, you define a timeout value for reading results from the server. All applications using this configuration file will have a 45 seconds timeout. If the application additionally specifies APPNAME=MyApp it will have a 30 seconds timeout. |
|