skip to main content
Troubleshooting : Diagnostic tools : ODBC trace : Enabling Tracing : Windows ODBC Administrator
  

Try DataDirect Drivers Now
Windows ODBC Administrator
This information pertains to Windows. 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.
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]
Do not edit the Registry unless you are an experienced user. Consult your system administrator if you have not edited the Registry before.
Edit each key using your values and close the Registry.