How can I see what queries were executed at a specific time?


for example, if want see queries executed @ specific date such 03/29/2011, there way that? have daily db backup , hourly transaction log backup.

someone correct me if i'm wrong, can't find out queries executed during time frame.

the sys.dm_exec_query_stats dmv (in concert sys.dm_exec_sql_text dmf) tell when plan created in cache , when last executed , how many times executed, won't tell every single time executed.

the way can find out queries executed running trace (either server-side or via sql profiler) during time frame you're interested in... far time in past, information not recorded.

 


--brad (my blog)


SQL Server  >  Transact-SQL



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........