TOP 100 long execution query
SELECT DISTINCT TOP 100
t.TEXT QueryName,
s.execution_count AS ExecutionCount,
s.max_elapsed_time AS MaxElapsedTime,
ISNULL(s.total_elapsed_time / s.execution_count, 0) AS AvgElapsedTime,
s.creation_time AS LogCreatedOn,
ISNULL(s.execution_count / DATEDIFF(s, s.creation_time, GETDATE()), 0) AS FrequencyPerSec
FROM sys.dm_exec_query_stats s
CROSS APPLY sys.dm_exec_sql_text( s.sql_handle ) t
ORDER BY
AvgElapsedTime DESC
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26477398/viewspace-2122448/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【MySQL】mysqldump Error 3024: Query execution was interruptedMySqlError
- 關聯式資料庫 Query_Execution資料庫
- 如何限制使用者修改long_query_time
- CMU資料庫(15-445)Lab3- QUERY EXECUTION資料庫
- (十二)資料庫查詢處理之Query Execution(1)資料庫
- MSSQL2005-QUERY EXECUTION學習筆記一SQL筆記
- MSSQL2005-QUERY EXECUTION學習筆記之二SQL筆記
- 【MySQL】慢日誌大量生成 long-query-time “失效”問題MySql
- MySQL 8.0 Reference Manual(讀書筆記59節--Understanding the Query Execution Plan(2))MySql筆記
- MySQL 8.0 Reference Manual(讀書筆記58節--Understanding the Query Execution Plan(1))MySql筆記
- 2 28TOP100
- CMU15445 (Fall 2019) 之 Project#3 - Query Execution 詳解Project
- Specified key was too long; max key length is 1000 bytes
- zabbix Triggers Top 100
- top 的%CPU總數大於100
- GitHub 上 iOS 開源庫 Top 100GithubiOS
- oracle execution planOracle
- Oracle Parallel ExecutionOracleParallel
- Long raw和Long型別總結型別
- TOP 100 大前端超棒精選列表前端
- How to Get a 10046 trace for a Parallel Query [ID 1102801.1]Parallel
- Parallel Execution of SQL StatementsParallelSQL
- Explain for the Statistics of Execution PlanAI
- 洞察行業100+頂級案例,TOP100summit盛大開幕!行業MIT
- PHP最常用函式TOP100(翻譯)PHP函式
- 2015年底全球TOP100巡演
- GitHub 熱門 Android 開源庫 Top 100GithubAndroid
- 「LeetCode Top100」之雜湊篇LeetCode
- 「LeetCode Top100」之雙指標LeetCode指標
- 「LeetCode Top100」之滑動視窗LeetCode
- c# long?與long的轉化程式碼C#
- 100臺機器上海量IP如何查詢出現頻率 Top 100?
- Java long型別和Long型別的那些事Java型別
- 2020 年度開發者工具 Top 100 名單!
- Google 釋出全球 TOP 1000 網站榜單Go網站
- phpmysqlimysqli_query()mysqli_real_query()PHPMySql
- Understanding Parallel Execution PlanParallel
- explain plan VS execution planAI