Поделиться через


Метод 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)

Руководства планов