Identifying the Client Configuration to Your Application

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:

Specifying the Configuration by Environment Variable

Start of instruction setTo 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.

Specifying the Configuration in Your Application

Start of instruction setTo specify the client configuration in your application:

  1. Use the in your application to specify the client configuration name prior to accessing the database. The syntax of the AdaSetParameter API function is:

    AdaSetParameter ("WCPCONFIG=configname")

    -- where configname is the name of the configuration.