I have a long list of a number of slow running stored procedures in one of our databases which I would like to monitor. We are running SQL Server 2012 Enterprise edition. I am aware that SQL Server profiler is no longer the recommended tool to use for this, any recommendations?
Thanks in advance
SQL Server supports collecting execution statistics for natively compiled stored procedures, both on the procedure level and the query level. Collecting execution statistics is not enabled by default due to performance impact.
You can enable and disable statistics collection on natively compiled stored procedures using
sys.sp_xtp_control_proc_exec_stats
(Transact-SQL).https://learn.microsoft.com/en-us/sql/relational-databases/system-stored-procedures/sys-sp-xtp-control-proc-exec-stats-transact-sql