记录 ODBC、SQL Server
如何记录、跟踪或获取应用程序通过 ODBC 驱动程序发送到 Microsoft SQL Server 2008 的查询(无需修改应用程序...)
也许可以使用 SQL Server 本身来完成,或者 ODBC 有一些查询日志记录?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@davispuh,您可以使用SQL Profiler 跟踪 SQL 语句。
您还可以使用 ODBC 跟踪。
@davispuh, you can use the SQL Profiler to trace SQL statements.
you can also use the ODBC Tracing.
使用 SQL-Profiler 创建跟踪:
SQL Server 的实例。将出现“跟踪属性”对话框。
将迹线作为基础,或者如果您不想使用模板,则选择“空白”。
有关详细信息,请参阅文档
如果您需要执行此操作对于 ODBC,您可以检查以下两个主题:
希望这有帮助。
To Create a Trace using SQL-Profiler:
instance of SQL Server. The Trace Properties dialog box appears.
base the trace, or select Blank if you do not want to use a template.
For more information see the documentation
If you need to do this for ODBC you can check the following two topics:
Hope this helps.