The default accounting string is set by the DB2 Connect workstation's dft_account_str configuration parameter. This default mechanism is useful for database clients that do not have the capability to forward an accounting string to DB2 Connect (for example, applications developed prior to Version 2 products).
There are two ways for client applications to override the default accounting string set at the DB2 Connect server:
The SQLESACT() API is called before the application connects to a database. You should use this method because:
Refer to the Administrative API Reference for details on using this API.
If the sqlesact() API is not called prior to the first database connect request, the DB2ACCOUNT registry value is read. The accounting string is used for all subsequent database connect requests.
Note: | When defining the accounting string, you should observe the following
rules:
|