SQL access check access logs can be found in the operating table

TOP 2000 the SELECT 
       ST.text AS 'execute SQL statement',
       QS.creation_time AS 'execution time' 
the FROM sys.dm_exec_query_stats QS
       the CROSS APPLY 
sys.dm_exec_sql_text (QS.sql_handle) ST
the ORDER BY
     QS.creation_time DESC

Guess you like

Origin www.cnblogs.com/cxd4321/p/12436440.html