Metodo PolicyStore.RepairPolicyAutomation

The RepairPolicyAutomation method recreates all necessary artifacts for all automated policies.

Spazio dei nomi  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Sintassi

'Dichiarazione
Public Sub RepairPolicyAutomation
'Utilizzo
Dim instance As PolicyStore

instance.RepairPolicyAutomation()
public void RepairPolicyAutomation()
public:
void RepairPolicyAutomation()
member RepairPolicyAutomation : unit -> unit
public function RepairPolicyAutomation()

Osservazioni

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.

Vedere anche

Riferimento

PolicyStore Classe

Spazio dei nomi Microsoft.SqlServer.Management.Dmf