Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

respected DBAs . . . is it possible to tell when statistics were last accessed by a query using T-SQL? I'm trying to ascertain what statistics are involved in a query, I know I can check the visual query plan but I wondered whether there was a table (or tables) with this information.

Thanks!

share|improve this question
3  
Is this what you are asking? How to Find the Statistics Used to Compile an Execution Plan. – Martin Smith Aug 28 '13 at 16:45
    
Looks like it :D thanks that's awesome - didn't know about those trace flags – DBAWaffle Aug 28 '13 at 17:50
    
Which version of SQL Server? – swasheck Aug 11 '15 at 22:05

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.