If your application is 64-bit, in the Windows Run dialog box, enter:
odbcad32.exe
–Or–
If your application is 32-bit, in the Windows Run dialog box, enter:
%windir%\syswow64\odbcad32.exe
C:\logs\ODBC.log)
.Now you will notice that the button has now changed to Stop Tracing Now
All ODBC calls will now be logged to the specified log file.