Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Microsoft SQL Server Dynamic Management Views

2,306 views

Published on

Dynamic Management Views - A DMV Fairy Tale by Greg Larsen, MVP

This session will interest anyone who wants to learn more about DMVs and how to use them to return Performance information.

You’ll Learn:

• Which DMV’s can be used to obtain performance information
• Code snippets that you can run on your servers

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Microsoft SQL Server Dynamic Management Views

  1. 1. Dynamic Management Views <br />A DMV Fairytale <br />by Greg Larsen, SQL Server MVP <br />May 2011<br />Mark Ginnebaugh, Group Leader<br />mark@designmind.com<br />
  2. 2. A DMV Fairytale <br />Or <br />Through the Looking-Glass, and What Alice Found There<br />Greg Larsen Introduction<br />I’ve been working in IT since the early 80’s<br />Been a DBA since the mid 80’s<br />Started working with SQL Server in 1999<br />DBA and Developer certifications<br />SQL Server MVP<br />greg@designmind.com<br />
  3. 3. The DMV Fairytale begins<br />
  4. 4. Alice <br />A DBA for the Wonderland Corporation<br />Works from home<br />
  5. 5. Chapter 1 – The Garden of Flowers<br />
  6. 6. Chapter 1 – The Garden of Flowers and a few servers<br />Which Database is doing all the IO?<br />
  7. 7. Chapter 1 – The Garden of Flowers and a few servers<br />sys.dm_io_virtual_file_stats<br />
  8. 8. Chapter 1 – The Garden of Flowers and a few servers<br />
  9. 9. Chapter 2 – Tweedledum and Tweedledee<br />
  10. 10. Chapter 2 – Tweedledum and Tweedledee<br />
  11. 11. Chapter 2 – Tweedledum and Tweedledee<br />
  12. 12. Chapter 2 – Tweedledum and Tweedledee<br />
  13. 13. Chapter 2 – Tweedledum and Tweedledee<br />sys.dm_exec_procedure_stats<br />sys.dm_exec_query_stats<br />
  14. 14. Chapter 3 - Wool and Water, and the Missing Index<br />
  15. 15. Chapter 3 - Wool and Water, and the Missing Index<br />Yes Alice, I seem to be missing my indexes!!!!<br />
  16. 16. Chapter 3 - Wool and Water, and the Missing Index<br />sys.dm_db_missing_index_details<br />sys.dm_db_missing_index_groups<br />sys.dm_db_missing_index_group_stats<br />
  17. 17. Chapter 4 - Humpty Dumpty<br />
  18. 18. Chapter 4 - Humpty Dumpty<br />Would you show me a demo of what you’re talking about?<br />
  19. 19. Chapter 4 - Humpty Dumpty<br />
  20. 20. Chapter 4 - Humpty Dumpty<br />sys.dm_os_performance_counters<br />
  21. 21. Chapter 5 – Alice, the Messenger and the White King <br />
  22. 22. Chapter 5 – Alice, the Messenger and the White King <br />$$$$CACHE$$$$<br />
  23. 23. Chapter 5 – Alice, the Messenger and the White King <br />Can you evaluate who’s using my $$$$CACHE$$$$?<br />
  24. 24. Chapter 5 – Alice, the Messenger and the White King <br />sys.dm_exec_cached_planssys.dm_os_buffer_descriptors<br />
  25. 25. The DMV Fairytale ends<br />
  26. 26. Thank you<br />Greg Larsen greg@designmind.com<br />Greg Larsen is a SQL Server MVP, a Senior DBA for the Washington State Department of Health, and a DesignMind DBA Consultant. <br />Greg has authored over 100 articles related to SQL Server. He holds a MCITP Database Administrator and Developer certification for SQL Server 2005. Greg hosts the SQL Server Examples website, which contains a number of T-SQL examples to help you manage your SQL Server environment and application T-SQL code. <br />Twitter: @GregoryLarsen<br />
  27. 27. To learn more or attend a meeting: http://www.meetup.com/The-San-Francisco-SQL-Server-Meetup-Group/<br />To inquire about sponsorship or speaking opportunities:<br />Mark Ginnebaugh, User Group Leader mark@designmind.com<br />

×