In ODBC Administrator go to Tracing tab and click “Start Tracing Now”
Go to run cmd.exe and run cwbcotrc on /allusers
Run the ODBC application until your down with what you wanted to trace
Go to run cmd.exe and run cwbcotrc off
In ODBC Administrator go to Tracing tab and click “Stop Tracing Now”.
Do a search for SQL.Log on your c:/ drive
Go to run cmd.exe and run cwbsvget
Hit enter to open explorer to the cwbsvget.zip file
In that zip file there’s a lot of ODBC api calls to help you better understand whats going on. I used notepad++’s find in files search to dig into it.