The following query will present you with the top 25 most i/o intensive queries your system has run.
SELECT TOP 25
q.[text],
(total_logical_reads/execution_count) AS avg_logical_reads,
(total_logical_writes/execution_count) AS avg_logical_writes,
(total_physical_reads/execution_count) AS avg_phys_reads,
Execution_count
FROM sys.dm_exec_query_stats
cross apply sys.dm_exec_sql_text(plan_handle) AS q
ORDER BY
(total_logical_reads + total_logical_writes) DESC
Tuesday, July 27, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment