exact queries that ran in a specific time..

in dm_exec_query_stats, I can check an aggregate of the queries that ran with
last_execution_time captured.. is it possible to see all the time that query ran?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

25112Author Commented:
the query I ran on "dm_exec_query_stats"

FROM sys.dm_exec_query_stats  
where last_execution_time between '2014-07-13 11:50:40.72' and '2014-07-13 11:52:40.72'
Marten RuneSQL Expert/Infrastructure ArchitectCommented:
It's an aggregate, so if the same query is also run on 11:53:00, you'll not see this with your query, when executed 11:54:00, I e select... From sys.dm_exec_query_stats.

perhaps a trace with a filter on database and duration is a better approach on how to identify your problem query (if any, keep in mind that applications like to accuse SQL, when in fact the application is behaving badly).

don't forget to ensure that index maintenance is configured before you try to find culprits against the SQL server service.

regards Marten

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.