sql server - How to find slowest queries -
SQL Server 2005 using the Profiler, you who find your slow queries and stored procedures incidents, columns and Find out the filter? / P>
slogan for argument = bigger than n seconds, 10
Can the 2005 SQL access management ideas to find a good script that I Found a while ago, will help you get started; This lists the first slowest performing data.
select_time, last_execution_time, total_file_type, total_logical_reads, total_logical_lights, exec_account, total_work_time, total_liped_time, total_appal-time / exec_property_values_time, SUBSTRING (st.text, (qs Statement_start_offset / 2) + 1 ((case cASE statement_end_offset when -1 THEN DATALENGTH (ST.text) ELSE qs.statement_end_offset END - qs.statement_start_off_setset) / 2) + 1) apply QS Cross as sys.dm_exec_query_stats from aS Vivrn_tekst Syskdm_exec_sql_text ( Qs.sql_handle) Total OR_ER_elapsed_time / execution_count Orders by DESC ORDER;
Comments
Post a Comment