时间:2021-07-01 10:21:17 帮助过:24人阅读
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
SQL查访问日志 能查到那个表的访问操作
标签:语句 sele sql sql语句 ati app creat cross order by