문제

How can I monitor all SQL commands that go through a ODBC User DSN?

the datasource is using the SQL Server native Client 10.0 driver.

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.

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. Is there some way I can monitor the datasource and see all the sql commands that are executed over that channel?

도움이 되었습니까?

해결책

Setup a SQL Server profile trace and capture the command being executed on the server. I assume you are using MSSQL as the backend?

다른 팁

https://expressprofiler.codeplex.com

It's free profiler in case you use SQL Server Express version.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top