PolicyStore.RepairPolicyAutomation Method ()


Recreates all necessary artifacts for all automated policies.

Namespace:   Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

public void RepairPolicyAutomation()

If there is a reason to suspect that something is not working, for example, if somebody manually removed a job or schedule, this procedure can be executed to restore the proper state of policy automation. That includes scheduled and on-change policies.

Return to top