on-internet
← Community

Why might SQL Server 2019 DMV sys.dm_exec_procedure_stats and sys.dm_exec_query_stats/sys.dm_exec_sql_text queries differ so much?

Stack Overflow ·

I've been using these DMVs for years to look at performance metrics, but since moving our servers to SQL Server 2019, I've seen numbers that don't seem to match up. I'm curious if I'm missing something here... With proc names and actual SQL masked, below is a sample test run with actual metrics. Where my confusion comes in is why, with only 1 run, I can't sum up the metrics from the second ("detailed") metrics and see a result on par with the first ("summary") metrics... It's easiest to see in LogReads, where Procedure1 has less statements run, and the Procedure2 statements with 6 & 8 LogReads

Comments

Sign in or sign up to comment and upvote.

No comments yet.