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

Procedure execution tracking

$
0
0
I'm looking to setup an audit trail for the execution of stored procedures. I know about the sys.dm_exec_procedure_stats view, but it only goes back to when the reset was which isn't really what I need. Is it possible to create a trigger at database or server level that fires when a proc is executed and populates a table? And also if possible who executed the procedure. This is so we can start to track unused procs and archive them Any help would be appreciated

Chris


Viewing all articles
Browse latest Browse all 12554

Trending Articles



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