Windows ODBC Administrator
- Last Updated: April 16, 2024
- 3 minute read
- DataDirect Connectors
- ODBC
- Aha! 8.0
- Amazon Redshift 8.0
- Apache Cassandra 8.0
- Apache Hive 8.0
- Apache Spark SQL 8.0
- Autonomous Rest Connector 8.0
- Cloudera Impala 7.1
- dBase 7.1
- + 24
![]()
On Windows, open the ODBC Data Source Administrator and select the Tracing tab. To specify the path and name of the trace log file, type the path and name in the Log File Path field or click Browse to select a log file. If no location is specified, the trace log resides in the working directory of the application you are using.
Click Select DLL in the Custom Trace DLL pane to select the DataDirect enhanced tracing library, xxtrcyy.dll, where xx represents either iv (32-bit version) or dd (64-bit version), and yy represents the driver level number, for example, ivtrc28.dll. The library is installed in the \Windows\System32 directory.
After making changes on the Tracing tab, click Apply for them to take effect.
Enable tracing by clicking Start Tracing Now. Tracing continues until you disable it by clicking Stop Tracing Now. Be sure to turn off tracing when you are finished reproducing the issue because tracing decreases the performance of your ODBC application.
EnablePacketLogging=5
in the Extended Options field of the Advanced tab to enable both ODBC trace and packet
logging. See to "Packet logging" for additional information on the
EnablePacketLogging option and Snoop logging. When tracing is enabled, information is written to the following trace log files:
- Trace log file (trace_filename.log) in the specified directory.
- Trace information log file (trace_filenameINFO.log). This file is created in the same
directory as the trace log file and logs the following SQLGetInfo information:
- SQL_DBMS_NAME
- SQL_DBMS_VER
- SQL_DRIVER_NAME
- SQL_DRIVER_VER
- SQL_DEFAULT_TXN_ISOLATION
The DataDirect enhanced tracing library allows you to control the size and number of log files. The file size limit of the log file (in KB) is specified by the Windows Registry key ODBCTraceMaxFileSize. Once the size limit is reached, a new log file is created and logging continues in the new file until it reaches its file size limit, after which another log file is created, and so on.
The maximum number of files that can be created is specified by the Registry key ODBCTraceMaxNumFiles. Once the maximum number of log files is created, tracing reopens the first file in the sequence, deletes the content, and continues logging in that file until the file size limit is reached, after which it repeats the process with the next file in the sequence. Subsequent files are named by appending sequential numbers, starting at 1 and incrementing by 1, to the end of the original file name, for example, SQL1.LOG, SQL2.LOG, and so on.
The default values of ODBCTraceMaxFileSize and ODBCTraceMaxNumFiles are 102400 KB and 10, respectively. To change these values, add or modify the keys in the following Windows Registry section:
[HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBC.INI\ODBC]
Edit each key using your values and close the Registry.