SQL Server Profiler deprecation - Replacement?

前端 未结 1 1081
暗喜
暗喜 2021-02-02 11:38

I am developing ASP.NET and SQL Server applications, sometimes i am having trouble with a SQL Query, and i would like to see the SQL Servers \"response\" and not just the ASP.NE

相关标签:
1条回答
  • 2021-02-02 11:58

    While it is safe to continue using trace for the next few versions, Profiler is never the answer (some evidence here). If you're going to use trace, use a server-side trace. Just don't write new code that will utilize trace and expect to live beyond a few versions.

    The long-term answer is to use extended events. A blog you'll want to watch is SQL Server MVP Jonathan Kehayias of SQLskills.com. He has done a great job explaining extended events in laymen's terms and providing many, many ready-to-use examples. He also has great courses on PluralSight (which you can currently get for free through Visual Studio Dev Essentials):

    • SQL Server: Introduction to Extended Events
    • SQL Server: Advanced Extended Events
    0 讨论(0)
提交回复
热议问题