You can retrieve the last executed queries from the database using the query
SELECT deqs.last_execution_time AS [Time], dest.text AS [Query],deqs.*
FROM sys.dm_exec_query_stats AS deqs
CROSS APPLY sys.dm_exec_sql_text(deqs.sql_handle) AS dest
ORDER BY deqs.last_execution_time DESC
Thursday, January 3, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment