17.3.2 Configuration using environment variables
In the following circumstances, configure the output of HADB ODBC driver trace information by using environment variables:
-
You use the SQLDriverConnect, SQLDriverConnectW, SQLBrowseConnect, or SQLBrowseConnectW function to connect using an ODBC driver name (specifying DRIVER as a connection attribute) without using a data source.
-
You use a file DSN in a connection function such as SQLConnect or SQLConnectW.
Specify the following environment variables:
-
ADBODBTRC
Specify whether to output HADB ODBC driver trace information.
-
ADBODBTRCSIZE
Specify the maximum size of each HADB ODBC driver trace file.
-
ADBODBTRCPATH
Specify the folder in which to store the HADB ODBC driver trace files.
You must specify a folder for which the execution user has access privileges.
-
ADBODBTRCLV
Specify the trace level of the HADB ODBC driver trace.
For details about how to specify each environment variable, see 4.3.1 HADB client for Windows.
Note that the value of an environment variable will be invalid if you specify it in the following way. In this case, the default value of the environment variable applies.
export ADBODBTRCSIZE=
- Important
-
If you change the value of these environment variables while an application is accessing the HADB server using the ODBC driver, the new value will not apply to that application process.