Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PolicyStore.PurgeHealthState Method (SfcQueryExpression)

Removes the health data for a specified tree/subtree.

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

public void PurgeHealthState(
	SfcQueryExpression targetTreeRoot
)

Parameters

targetTreeRoot
Type: Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression
A T: Microsoft.SqlServer.Management.Sdk.Sfc.SfcQueryExpression object.

Results of failed local policies can be displayed for affected objects by using the toggle (scroll with a white cross in small red circle icon). This displays the icon in the tree, so an admin can see what objects are out of compliance and investigate the cause. There are certain situations when it is desirable to refresh the state, for example, when a corrective action has been applied and the admin doesn't want to wait till the next scheduled run.

Community Additions

ADD
Show:
© 2015 Microsoft