How can I monitor the executed sql statements on a SQL Server 2005

后端 未结 2 1433
慢半拍i
慢半拍i 2020-12-28 17:26

In a project of mine the SQL statements that are executed against a SQL Server are failing for some unknown reason. Some of the code is already used in production so debuggi

相关标签:
2条回答
  • 2020-12-28 17:38

    Seeing how you use the Management Studio Express, I will assume you don't have access to the MSSQL 2005 client tools. If you do, install those, because it includes the SQL profiler which does exactly what you want (and more!). For more info about that one, see msdn.

    I found this a while ago, because I was thinking about the exact same thing. I have access to the client tools myself, so I don't really need to yet, but that access is not unlimited (it's through my current job). If you try it out, let me know if it works ;-)

    0 讨论(0)
  • 2020-12-28 17:50

    Best way is to fire up profiler, start a trace, save the trace and then rerun the statements

    0 讨论(0)
提交回复
热议问题