Reputation: 1433
How to log, trace or get queries that an application send to Microsoft SQL Server 2008 thru ODBC driver (without modifying application...)
Maybe it can be done with SQL Server itself or ODBC has some query logging?
Upvotes: 6
Views: 11064
Reputation: 37576
To Create a Trace using SQL-Profiler:
For more information see the documentation
If you need to do this for ODBC you can check the following two topics:
Hope this helps.
Upvotes: 1
Reputation: 136431
@davispuh, you can use the SQL Profiler to trace SQL statements. you can also use the ODBC Tracing.
Upvotes: 4