sql server 2005 – dynamic management views & functions

16
SQL Server 2005 – Dynamic Management Views & Functions Whitney Weaver Senior Consultant [email protected] om

Upload: stasia

Post on 25-Feb-2016

19 views

Category:

Documents


2 download

DESCRIPTION

SQL Server 2005 – Dynamic Management Views & Functions. Whitney Weaver Senior Consultant [email protected]. Discussion Overview. History Architecture Scope Permissions Organization Demo Questions. History. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: SQL Server 2005 – Dynamic Management Views & Functions

SQL Server 2005 – Dynamic Management Views & FunctionsWhitney WeaverSenior [email protected]

Page 2: SQL Server 2005 – Dynamic Management Views & Functions

Discussion Overview

• History• Architecture• Scope • Permissions• Organization• Demo• Questions

Page 3: SQL Server 2005 – Dynamic Management Views & Functions

History

• Added to SQL Server 2005 based on customer demand for greater visibility into their instance

• A few dozen people in virtual team put DMVs together

• Will continue to be driven by customer need– Roughly 30 new DMVs in SQL 2008

Page 4: SQL Server 2005 – Dynamic Management Views & Functions

Discussion Overview

• History• Architecture• Scope • Permissions• Organization• Demo• Questions

Page 5: SQL Server 2005 – Dynamic Management Views & Functions

Architecture

• Dynamic metadata made available by SQL 2005 SQLOS

• Resource database (mssqlsystemresource)

• Views and Functions

• Copy of DMV objects in each user database

Page 6: SQL Server 2005 – Dynamic Management Views & Functions

Discussion Overview

• History• Architecture• Scope • Permissions• Organization• Demo• Questions

Page 7: SQL Server 2005 – Dynamic Management Views & Functions

Scope

• Two scopes for DMVs– Server– Database

• Sys schema (sys.dm_*)

• Data cleared on server restart

• Some DMVs can be reset without restart

Page 8: SQL Server 2005 – Dynamic Management Views & Functions

Discussion Overview

• History• Architecture• Scope • Permissions• Organization• Demo• Questions

Page 9: SQL Server 2005 – Dynamic Management Views & Functions

Permissions

• SELECT permission on objects

• VIEW SERVER STATE

• VIEW DATABASE STATE

Page 10: SQL Server 2005 – Dynamic Management Views & Functions

Discussion Overview

• History• Architecture• Scope • Permissions• Organization• Demo• Questions

Page 11: SQL Server 2005 – Dynamic Management Views & Functions

OrganizationCommon Language Runtime I/O

Database Mirroring Query Notifications

Database Replication

Execution Service Broker

Full-Text Search SQL Server OS

Index Transaction

Page 12: SQL Server 2005 – Dynamic Management Views & Functions

Discussion Overview

• History• Architecture• Scope • Permissions• Organization• Demo• Questions

Page 13: SQL Server 2005 – Dynamic Management Views & Functions

Demo

• Show me the code!

Page 14: SQL Server 2005 – Dynamic Management Views & Functions

Resources

• Blogshttp://www.sqlskills.com/blogs/conor/http://sqlblog.com/blogs/louis_davidson/

• BOLhttp://technet.microsoft.com/en-us/library/ms188754.aspx

• Paul MestemakerProgram Manager, Microsoft SQL Server

Page 15: SQL Server 2005 – Dynamic Management Views & Functions

Questions

• ??

Page 16: SQL Server 2005 – Dynamic Management Views & Functions

Contact Information

• My [email protected]

• My bloghttp://blog.magenic.com/blogs/whitneyw/default.aspx