Database.ValidateAllPlanGuides Method

Verifies the validity of the execution plans associated with the database.

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


Public Function ValidateAllPlanGuides As Boolean
Dim instance As Database 
Dim returnValue As Boolean 

returnValue = instance.ValidateAllPlanGuides()
public bool ValidateAllPlanGuides()
bool ValidateAllPlanGuides()
member ValidateAllPlanGuides : unit -> bool
public function ValidateAllPlanGuides() : boolean

Return Value

Type: System.Boolean
A Boolean value that determines whether all of the execution plans are valid.


If the method is unsuccessful, you can run the method again with the output parameter that contains detailed information about each execution plan.

See Also


Database Class

ValidateAllPlanGuides Overload

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

sys.fn_validate_plan (Transact-SQL)

Plan Guides