Database.ValidateAllPlanGuides 方法 (DataTable%)

Verifies the validity of the execution plans associated with the database and returns validation report.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Function ValidateAllPlanGuides ( _
    <OutAttribute> ByRef errorInfo As DataTable _
) As Boolean
用法
Dim instance As Database 
Dim errorInfo As DataTable 
Dim returnValue As Boolean 

returnValue = instance.ValidateAllPlanGuides(errorInfo)
public bool ValidateAllPlanGuides(
    out DataTable errorInfo
)
public:
bool ValidateAllPlanGuides(
    [OutAttribute] DataTable^% errorInfo
)
member ValidateAllPlanGuides : 
        errorInfo:DataTable byref -> bool
public function ValidateAllPlanGuides(
    errorInfo : DataTable
) : boolean

参数

  • errorInfo
    类型:System.Data.DataTable%
    A reference to DataTable object value that contains detailed information about the validation errors for each execution plan that is associated with the database.

返回值

类型: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.

请参阅

参考

Database 类

ValidateAllPlanGuides 重载

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

sys.fn_validate_plan (Transact-SQL)

计划指南