Iteratively Perfecting
A Software Developer's notes along the way
Static Pages
Posts
SQL Server links
C# Links
HTML5 Links
Friday, April 9, 2021
T-SQL: How to see recently executed queries
SELECT deqs.last_execution_time AS [Time], dest.text AS [Query] 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
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment