"I am (almost?) certain OBDC trace can be used as well. I need to investigate this option - assuming ODBC is used of course"
Niall emailed me at the end of last week to let me know that ODBC trace is not useful in grabbing the SQL sent from an application that uses ODBC. Niall told me the following:
- It traces the ODBC calls and not the SQL itself - so you get lines like those listed at the end
- It is unbelievably slow, I mean truly, awfully slow
- I'm fairly sure that the original guy was using ADO which doesn't necessarily mean ODBC is involved anywhere
Thanks to Niall for the clarification on the ODBC issue.
For reference I also posted a second post on the subject of grabbing and auditing the SQL - This was called "Addendum to yesterdays auditing SQL from black box third party applications"
Finally Niall also made an additional post to the original thread on c.d.o.s today about ODBC that said:
"It is incredibly slow, and incredibly verbose. Those who bemoan the 'overhead' of timed_statistics=true or sql_trace ought to try it someday :("