programming4us
programming4us
DATABASE

SQL Server 2012 : Policy Based Management - Evaluating Policies

- How To Install Windows Server 2012 On VirtualBox
- How To Bypass Torrent Connection Blocking By Your ISP
- How To Install Actual Facebook App On Kindle Fire
7/24/2014 4:31:44 AM

Of course, policies would be purely academic if they never actually executed and evaluated any objects. Policies may be set for On Schedule, On Demand, On Change, or Log Only. Policies must be enabled using their context menu. On demand policies may not be enabled.

For policies set to On Demand, the policies may be evaluated for any object using the object's context menu → Policies → Evaluate. This opens the Evaluate Polices dialog for the object, as shown in Figure 1.

Figure 1 All the policies that can be run on-demand for an object can be selected and evaluated using the Evaluate Polices dialog.

20.7

The outcome of the policy evaluations is displayed in the Evaluation Results page, as seen in Figure 2.

Figure 2 Here the Aesop database passes the No AutoShrinkage policy and declares to be in good health.

20.8

You can see the current state of any object for all policies regardless of their Execution mode by right-clicking on a policy and seeing the Enabled or Disabled options in the context menu.

Within the View Policies dialog, you can see the history for any policy evaluation for the object using the log viewer by clicking the view history link in the policy row. You can also see the policy evaluation in the Windows event log and the SQL Server event log.

To view a history of policy execution query use the following:

SELECT * FROM msdb.dbo.syspolicy_policy_execution_history_details;

To view exception query use the following:

SELECT * FROM msdb.dbo.syspolicy_policy_execution_history;

PBM health is also well integrated into Management Studio's object listings. The Object Explorer Details page has an optional column to display the Policy Health of any object.

Note
PBM requires SQL Server Agent running on the central monitoring server. Be sure the SQL Server Agent service is set to start automatically and that its service account password won't expire.
Other  
  •  SQL Server 2012 : Defining Policies (part 3) - Creating Policies
  •  SQL Server 2012 : Defining Policies (part 2) - Conditions
  •  SQL Server 2012 : Defining Policies (part 1) - Management Facets
  •  SQL Server 2012 : Validating Server Configuration (part 2) - Evaluate the Policy, Using the Central Management Server
  •  SQL Server 2012 : Validating Server Configuration (part 1) - The Need for a Policy, Create Policy on a Local Server
  •  SQL Server 2012 : Encryption (part 2) - Certificate-Based Encryption, Transparent Data Encryption
  •  SQL Server 2012 : Encryption (part 1) - Encryption Primer, Password-Based Encryption
  •  SQL Server 2012 : Auditing in SQL Server (part 3) - Database Audit Specification Object, User-Defined Audit Event
  •  SQL Server 2012 : Auditing in SQL Server (part 2) - Server Audit Specification Object
  •  SQL Server 2012 : Auditing in SQL Server (part 1) - Auditing Objects, Server Audit Object
  •  
    Top 10
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
    - Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
    - Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
    - Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
    - Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
    REVIEW
    - First look: Apple Watch

    - 3 Tips for Maintaining Your Cell Phone Battery (part 1)

    - 3 Tips for Maintaining Your Cell Phone Battery (part 2)
    programming4us programming4us
    programming4us
     
     
    programming4us