Navigation

Tuesday, July 27, 2010

SQL I/O Performance Measures

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


No comments: