Skip to content

Commit

Permalink
zapytanie do podgladu biezacych zapytan w bazie mssql
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszklim committed Jun 24, 2016
1 parent 6251e3f commit fc8cf54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions podglad_zapytan_mssql_express.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
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
WHERE deqs.last_execution_time between '2014-10-08 18:23:00' and '2014-10-08 18:23:30'
AND dest.TEXT not like 'CREATE %'
ORDER BY deqs.last_execution_time DESC;

0 comments on commit fc8cf54

Please sign in to comment.