When your application attempts to access a database, it needs to know which client configuration it should use for its communications with the database. You can specify which client configuration should be used by your application in one of two ways:
You can set an environment variable that identifies the client configuration.
You can specify the client configuration in your application.
This document describes both methods:
To specify the client configuration using an environment variable:
In your list of system environment variables, add a
WCPCONFIG
environment variable that is set to the
name of the client configuration file. Do not specify the path to this file;
Entire Net-Work knows where to find it. For information on specifying environment
variables in Windows, refer to your Windows
documentation and UNIX, refer to the
documentation for those environments.
To specify the client configuration in your application:
Use the AdaSetParameter function in your application to specify the client configuration name prior to accessing the database. The syntax of the AdaSetParameter function is:
AdaSetParameter ("WCPCONFIG=configname")
-- where configname is the name of the configuration.