SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Get Executed Query for Specific Date
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

visweswaran28
Starting Member

India
4 Posts

Posted - 08/14/2012 :  12:04:16  Show Profile  Reply with Quote
HI,

I want to retrieve list of executed query for a specific date in sql server.

Thanks in Advance

chadmat
The Chadinator

USA
1949 Posts

Posted - 08/14/2012 :  12:33:59  Show Profile  Visit chadmat's Homepage  Reply with Quote
Were you running a trace on that specific date?

-Chad
Go to Top of Page

xhostx
Constraint Violating Yak Guru

USA
261 Posts

Posted - 08/14/2012 :  12:34:47  Show Profile  Reply with Quote
this may slightly serve your need:


SELECT *
FROM sys.dm_exec_query_stats


--------------------------
Joins are what RDBMS's do for a living
Go to Top of Page

chadmat
The Chadinator

USA
1949 Posts

Posted - 08/14/2012 :  12:38:28  Show Profile  Visit chadmat's Homepage  Reply with Quote
Only if the query is still in cache, and only if it hasn't executed again since the date he is looking for.

-Chad
Go to Top of Page

lionofdezert
Aged Yak Warrior

Pakistan
864 Posts

Posted - 08/14/2012 :  12:43:32  Show Profile  Visit lionofdezert's Homepage  Send lionofdezert a Yahoo! Message  Reply with Quote
Better install a very nice (and FREE) tool for SQL Server Management Studio from http://www.ssmstoolspack.com/

--------------------------
http://connectsql.blogspot.com/
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000