you want rules? you need policy-based management!
TRANSCRIPT
You need rules?You need PBM!
@BorisHristov
Me and My Experience
Here’s how this will go…
What? How? WOW!
What’s PBM?
Policy-Based Management is…
Way to define rules
SQL Server 2008/R2/2012/2014 Feature
Express Edition and higher
(in Express – Limited functionality)
Can be used against 2000 and 2005
… kind of
How does it work?
Main components
Facets
Conditions
Targets
Evaluation Modes
PolicyOn demand
On schedule
On change: log only
On change: prevent
Nested Triggers
EXEC sp_configure 'nested triggers', 1RECONFIGUREGO
Microsoft – our Friend
C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Policies
Advanced policies
Script as a condition!
ExecuteSql(‘Numeric’,
‘SELECT COUNT(*) FROM sys.databases’)
ExecuteWql
('String', 'root\CIMV2',
'SELECT State
FROM Win32_Service
WHERE Name = "SQLAgent$SECOND"')
Centralized Management Server(your time saver)
Introduced in SQL Server 2008
Available even in Express
Allows you to:
• Run scripts
• Evaluate policies
From one, centralized place…
Monitoring Policies with Agent Alerts?
Views
syspolicy_policies
syspolicy_policy_category_subscriptions
syspolicy_policy_execution_history
syspolicy_policy_execution_history_details
syspolicy_system_health_state
syspolicy_conditions
syspolicy_target_sets
syspolicy_object_sets
syspolicy_policy_categories
DEMOWorking with Policies, Alerts and CMS
Reporting on PBM!
The EPM Framework
(yes, it is free!)
DEMOEnterprise Policy Management Framework
Shall we end?
PBM is all about managing your environments even better!
More resources:
Book: Apress Pro SQL Server 2008 PBM
Pluralsight Course: Auditing SQL Server with PBM
Whitepaper: http://tinyurl.com/7b2w2ug
Enterprise Policy Management Framework:
http://epmframework.codeplex.com/
Thank you.@BorisHristov
www.borishristov.com