Logging ODBC, SQL Server
问题 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? 回答1: @davispuh, you can use the SQL Profiler to trace SQL statements. you can also use the ODBC Tracing. 回答2: To Create a Trace using SQL-Profiler: On the File menu of SQL-Profiler, click New Trace, and connect to an instance of SQL Server. The Trace Properties dialog box appears.