YOU NEEDRULES?YOU NEED PBM!Boris Hristov MCITP DBAIvan Donev MCITP DEV, BI, DBA©2011 Hewlett-Packard Development Company, ...
Our agenda•   What is it? Policy – based management?•   How does this all work?•   What is coming?•   Case Study: SQL Serv...
What is PBM?
What is PBM?    Way to define rules    SQL Server 2008/R2/2012 Feature    Express Edition and higher    (in Express – Limi...
How does it work?
Main components    Facets    Conditions    Targets                                    Polic                        On dema...
7
More on policies…Capturing events with        Alerts8
Advanced policiesExecuteSql(‘Numeric’, ‘SELECT COUNT(*) FROMsys.databases’)http://msdn.microsoft.com/en-us/library/ms18800...
Central Management SystemWay to evaluate policies on the whole environment!… with few clicks!10
Microsoft – our Friend   C:Program Files (x86)Microsoft SQL Server110ToolsPolicies11
syspolicy_policy_categorieViews                                 ssyspolicy_policy_category_subscriptions                  ...
Nested Triggers        EXEC sp_configure nested triggers, 1        RECONFIGURE        GO13
DEMO
What is coming?
SQL Server 2012?                      Availability Database                       Availability Group                     A...
SQL Azure?Amm… not supported… in the near future!17
Case Study:SQL Server Health     Checks
Customer requirements•    Monthly based SQL Server healthcheck     – Configuration     – Security     – Operation   detail...
The approach•    EPM Framework•    Schedule and execution     specifics•    SQL Server Version     Specifics•    Reporting20
CASE STUDYDEMONSTRATION
Shall we end?
Final wordsPBM is all about managing YOUR environment even better!23
More resources:http://www.mssqltips.com/category.asp?catid=89 – Various articleshttp://www.sqlservercentral.com/articles/P...
Q&A
THANK YOU
Upcoming SlideShare
Loading in …5
×

You need rules? You need PBM!

2,203 views

Published on

You need to enforce rules in your SQL Server environment? You need to strictly monitor who breaks or tries to break them? If so, you need Policy-based Management! Learn how this technology can help your resolve many of your problems!

Published in: Technology
  • Be the first to comment

  • Be the first to like this

You need rules? You need PBM!

  1. 1. YOU NEEDRULES?YOU NEED PBM!Boris Hristov MCITP DBAIvan Donev MCITP DEV, BI, DBA©2011 Hewlett-Packard Development Company, L.P.The information contained herein is subject to change without notice
  2. 2. Our agenda• What is it? Policy – based management?• How does this all work?• What is coming?• Case Study: SQL Server Health Checks• Thank you!2
  3. 3. What is PBM?
  4. 4. What is PBM? Way to define rules SQL Server 2008/R2/2012 Feature Express Edition and higher (in Express – Limited functionality) Can be used against 2000 and 2005 … kind of4
  5. 5. How does it work?
  6. 6. Main components Facets Conditions Targets Polic On demand Evaluation Modes On schedule y On change: log only On change: prevent Categories6
  7. 7. 7
  8. 8. More on policies…Capturing events with Alerts8
  9. 9. Advanced policiesExecuteSql(‘Numeric’, ‘SELECT COUNT(*) FROMsys.databases’)http://msdn.microsoft.com/en-us/library/ms188001.aspxScript as a condition!ExecuteWql(String, rootCIMV2,SELECT StateFROM Win32_ServiceWHERE Name = "SQLAgent$SECOND")http://msdn.microsoft.com/en-us/library/bb895209.aspx9
  10. 10. Central Management SystemWay to evaluate policies on the whole environment!… with few clicks!10
  11. 11. Microsoft – our Friend C:Program Files (x86)Microsoft SQL Server110ToolsPolicies11
  12. 12. syspolicy_policy_categorieViews ssyspolicy_policy_category_subscriptions syspolicy_object_se syspolicy_policies ts syspolicy_target_set ssyspolicy_policy_execution_historysyspolicy_policy_execution_history_details syspolicy_conditions syspolicy_system_health_stat e12
  13. 13. Nested Triggers EXEC sp_configure nested triggers, 1 RECONFIGURE GO13
  14. 14. DEMO
  15. 15. What is coming?
  16. 16. SQL Server 2012? Availability Database Availability Group Availability Group State 8 new Facets Availability Replica From 76 to 84 Database Replica State Search Property List Sequence Server Role16
  17. 17. SQL Azure?Amm… not supported… in the near future!17
  18. 18. Case Study:SQL Server Health Checks
  19. 19. Customer requirements• Monthly based SQL Server healthcheck – Configuration – Security – Operation details• Approaches – Audit software – Manual checks – EPM Framework• The requirements – Frequency – Graphical interface and drill-down functionality – Compatible with all SQL Server Versions and editions (Standard, Enterprise, Datacenter)19
  20. 20. The approach• EPM Framework• Schedule and execution specifics• SQL Server Version Specifics• Reporting20
  21. 21. CASE STUDYDEMONSTRATION
  22. 22. Shall we end?
  23. 23. Final wordsPBM is all about managing YOUR environment even better!23
  24. 24. More resources:http://www.mssqltips.com/category.asp?catid=89 – Various articleshttp://www.sqlservercentral.com/articles/Policy+Based+Management/ - Variousarticleshttp://technet.microsoft.com/en-us/sqlserver/gg508904.aspx - MCM Lecturehttp://technet.microsoft.com/en-us/sqlserver/video/gg508903 - MCM DemoBook: Apress Pro SQL Server 2008 Policy – Based ManagementWhitepaper - http://tinyurl.com/7b2w2ugEnterprise Policy Management Framework ->http://epmframework.codeplex.com/24
  25. 25. Q&A
  26. 26. THANK YOU

×