A DMV F i t l
A DMV Fairytale
by Greg Larsen SQL Server MVP
by Greg Larsen, SQL Server MVP
May 2011
Mark Ginnebaugh, Group Leader
mark@designmind.com
A DMV Fairytale
A DMV Fairytale
Or
Through the Looking Glass, and What Alice Found There
Through the Looking‐Glass, and What Alice Found There
Greg Larsen Introduction
I’ve been working in IT since the early 80’s
Been a DBA since the mid 80’s
Started working with SQL Server in 1999
DBA and Developer certifications
SQL Server MVP
greg@designmind.com
The DMV Fairytale begins
Alice
A DBA for the Wonderland Corporation
Works from home
Chapter 1 – The Garden of Flowers
Chapter 1 – The Garden of Flowers and a few servers
sys.dm_exec_procedure_stats
sys.dm_exec_query_stats
Chapter 3 ‐ Wool and Water, and the Missing Index
Chapter 3 ‐ Wool and Water, and the Missing Index
Yes Alice, I seem to
Yes Alice I seem to
be missing my
indexes!!!!
Chapter 3 ‐ Wool and Water, and the Missing Index
sys.dm_db_missing_index_details
sys.dm_db_missing_index_groups
sys.dm_db_missing_index_group_stats
Chapter 4 ‐ Humpty Dumpty
Chapter 4 ‐ Humpty Dumpty
Would you show
me a demo of
me a demo of
what you’re
talking about?
talking about?
Chapter 4 ‐ Humpty Dumpty
Chapter 4 ‐ Humpty Dumpty
$$$$CACHE$$$$
Chapter 5 – Alice, the Messenger and the White King
Can you evaluate
who’s using my
who’s using my
$$$$CACHE$$$$?
Chapter 5 – Alice, the Messenger and the White King
sys.dm_exec_cached_plans
sys.dm_os_buffer_descriptors
The DMV Fairytale ends
The DMV Fairytale ends
Thank you
Greg Larsen greg@designmind.com
Greg Larsen is a SQL Server MVP, a Senior DBA for the Washington State
G L i SQL S MVP S i DBA f h W hi S
Department of Health, and a DesignMind DBA Consultant.
Greg has authored over 100 articles related to SQL Server. He holds a
g Q
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
environment and application T‐SQL code.
Twitter: @GregoryLarsen
To learn more or attend a meeting: http://www.meetup.com/The‐
San‐Francisco‐SQL‐Server‐Meetup‐Group/
To inquire about sponsorship or speaking opportunities:
Mark Ginnebaugh, User Group Leader mark@designmind.com
Mark Ginnebaugh, User Group Leader mark@designmind.com