VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
"Custom String" configuration parameter

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
VISOCO Support
VISOCO Software Support


Joined: 16 Jul 2002
Posts: 96

PostPosted: Thu Apr 14, 2005 5:37 pm    Post subject: "Custom String" configuration parameter Reply with quote

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.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group