Quickest way to identify most used Stored Procedure variation in SQL Server 2005

后端 未结 4 2119
醉话见心
醉话见心 2021-02-14 23:28

I am trying to figure out if there\'s a way to identify a \"version\" of a SP that gets called the most. I have an SP that gets called with a bunch of different parameters. I kn

4条回答
  •  梦如初夏
    2021-02-15 00:12

    If you know which SP is causing the problems couldn't you just log the parameters passed to it from within that SP? You could set up a table with the list of parameters, then log them along with the time the procedure took to complete and then query that table to see which parameters are causing the worst performance.

提交回复
热议问题