To enable logging for an application or process that uses the DDM for ODBC service, you must set an environment variable before the application or process launches.
If you can launch the application through a .bat file, add the following line to the .bat file:
SET DDM_GENODBC_LOG=<log configuration file path>
For example, you might add the following text:
SET DDM_GENODBC_LOG= C:\logs\logConfig.properties
If you cannot launch the application through a .bat file, complete the following steps before you launch the application:
Define the DDM_GENODBC_LOG user-level environment variable. Set the value to the application-specific configuration file that contains the log file path and log configuration for the application. The environment variable has the following properties:
Variable name
DDM_GENODBC_LOG
Variable value
The file path of the logging configuration file for the application. For example, you might enter the following text:
Start the application and test the ODBC connectivity. Verify that odbc32.dll is used and the configuration file is read.
Remove the DDM_GENODBC_LOG environment variable or delete the variable value to ensure that the variable does not affect applications that you start later.