标签:语句 sele sql sql语句 ati app creat cross order by
SELECT TOP 2000
ST.text AS ‘执行的SQL语句‘,
QS.creation_time AS ‘执行时间‘
FROM sys.dm_exec_query_stats QS
CROSS APPLY
sys.dm_exec_sql_text(QS.sql_handle) ST
ORDER BY
QS.creation_time DESC
标签:语句 sele sql sql语句 ati app creat cross order by
原文地址:https://www.cnblogs.com/cxd4321/p/12436440.html