ValidateAllPlanGuides 方法
验证与数据库相关联的执行计划的有效性。
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Function ValidateAllPlanGuides As Boolean
用法
Dim instance As Database
Dim returnValue As Boolean
returnValue = instance.ValidateAllPlanGuides()
public bool ValidateAllPlanGuides()
public:
bool ValidateAllPlanGuides()
member ValidateAllPlanGuides : unit -> bool
public function ValidateAllPlanGuides() : boolean
返回值
类型:System. . :: . .Boolean
一个 Boolean 值,该值确定所有执行计划是否都有效。
注释
If the method is unsuccessful, you can run the method again with the output parameter that contains detailed information about each execution plan.
请参阅
参考
其他资源
sys.fn_validate_plan (Transact-SQL)