Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

How to get number of execution in specific time-not from first

$
0
0
HiI have this query SELECT top 100 Ltrim([text]),objectid,total_rows,total_logical_reads , execution_count FROM sys.dm_exec_query_stats AS aCROSS APPLY sys.dm_exec_sql_text(a.sql_handle) AS b where last_execution_time >= '2015-04-07 10:01:01.01' ORDER BY execution_count DESCBut the result of execution count is from the first. I want to know it only one day. Thank you

Viewing all articles
Browse latest Browse all 6525

Trending Articles