Sunday, March 10, 2013

syspolicy_purge_history - What is it?

When you do a Sql Server 2008 installation or upgrade from a previous version, a SQL Agent job will be created during the installation/upgrade process: syspolicy_purge_history.

With SQL Server 2008 a new feature “Policy Management” was introduced. When you define a policy, this can be evaluated against targets to check for compliance. Each evaluation of compliance will be recorded in tables in msdb database:
  • syspolicy_policy_execution_history_details_internal
  • syspolicy_policy_execution_history_internal
  • syspolicy_policy_category_subscriptions_internal
The purpose of syspolicy_purge_history job is to remove records in those tables and keep them under reasonable size. 

No comments:

Post a Comment