Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 5123

How to archive all history records of sys.dm_exec_procedure_stats?

$
0
0

Hello,

In SQL Server 2008 R2, I want to monitor all SP's performance, so I need archive ALL history records in sys.dm_exec_procedure_status, but as you know, the lifetime of the row is as long as the stored procedure remains cached. When a stored procedure is removed from the cache, the corresponding row is eliminated from this view.

Is somebody have a good solution to archive all history records?

Thanks,

Cunhui


Stay hungry, stay foolish.


Viewing all articles
Browse latest Browse all 5123

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>