简体   繁体   English

如何监视通过ODBC用户DSN的所有SQL命令

[英]How can I monitor all SQL commands that go through a ODBC User DSN

How can I monitor all SQL commands that go through a ODBC User DSN? 如何监视通过ODBC用户DSN的所有SQL命令?

the datasource is using the SQL Server native Client 10.0 driver. 数据源正在使用SQL Server本机客户端10.0驱动程序。

I have an access app with hundreds of confusingly complex reports. 我有一个访问应用程序,其中包含数百个令人困惑的复杂报告。 Over the last 3 years We have ported the app to ColdFusion and MS Sql server and one of the reports has some inconsistencies with the access version of the app. 在过去的三年中,我们已将该应用程序移植到ColdFusion和MS Sql服务器,其中一份报告与该应用程序的访问版本存在一些不一致之处。

I've tried tracing the code through in the access app to discern exactly what is going on but I've been unable to figure it out. 我尝试在访问应用程序中跟踪代码以确切地了解正在发生的事情,但我一直无法弄清楚。 The access app uses an ODBC user DSN with the SQL Server native Client 10.0 driver. 访问应用程序使用带有SQL Server本机客户端10.0驱动程序的ODBC用户DSN。 Is there some way I can monitor the datasource and see all the sql commands that are executed over that channel? 有什么办法可以监视数据源并查看通过该通道执行的所有sql命令?

Setup a SQL Server profile trace and capture the command being executed on the server. 设置SQL Server配置文件跟踪,并捕获服务器上正在执行的命令。 I assume you are using MSSQL as the backend? 我假设您使用MSSQL作为后端?

https://expressprofiler.codeplex.com https://expressprofiler.codeplex.com

It's free profiler in case you use SQL Server Express version. 如果您使用SQL Server Express版本,它是免费的探查器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM