Database.CheckTables 方法

定义

重载

名称 说明
CheckTables(RepairType)

使用给定的修复类型和NO_INFOMSGS调用 DBCC CHECKDB

CheckTables(RepairType, RepairOptions)

使用给定的修复类型和修复选项调用 DBCC CHECKDB

CheckTables(RepairType, RepairStructure)

使用给定的修复类型和修复结构调用 DBCC CHECKDB

CheckTables(RepairType, RepairOptions, RepairStructure, Nullable<Int64>)

使用给定选项调用 DBCC CHECKDB

CheckTables(RepairType)

使用给定的修复类型和NO_INFOMSGS调用 DBCC CHECKDB

public System.Collections.Specialized.StringCollection CheckTables(Microsoft.SqlServer.Management.Smo.RepairType repairType);
member this.CheckTables : Microsoft.SqlServer.Management.Smo.RepairType -> System.Collections.Specialized.StringCollection
Public Function CheckTables (repairType As RepairType) As StringCollection

参数

repairType
RepairType

返回

适用于

CheckTables(RepairType, RepairOptions)

使用给定的修复类型和修复选项调用 DBCC CHECKDB

public System.Collections.Specialized.StringCollection CheckTables(Microsoft.SqlServer.Management.Smo.RepairType repairType, Microsoft.SqlServer.Management.Smo.RepairOptions repairOptions);
member this.CheckTables : Microsoft.SqlServer.Management.Smo.RepairType * Microsoft.SqlServer.Management.Smo.RepairOptions -> System.Collections.Specialized.StringCollection
Public Function CheckTables (repairType As RepairType, repairOptions As RepairOptions) As StringCollection

参数

repairType
RepairType
repairOptions
RepairOptions

返回

DBCC CHECKDB 返回的消息

适用于

CheckTables(RepairType, RepairStructure)

使用给定的修复类型和修复结构调用 DBCC CHECKDB

public System.Collections.Specialized.StringCollection CheckTables(Microsoft.SqlServer.Management.Smo.RepairType repairType, Microsoft.SqlServer.Management.Smo.RepairStructure repairStructure);
member this.CheckTables : Microsoft.SqlServer.Management.Smo.RepairType * Microsoft.SqlServer.Management.Smo.RepairStructure -> System.Collections.Specialized.StringCollection
Public Function CheckTables (repairType As RepairType, repairStructure As RepairStructure) As StringCollection

参数

repairType
RepairType
repairStructure
RepairStructure

返回

DBCC CHECKDB 返回的消息

适用于

CheckTables(RepairType, RepairOptions, RepairStructure, Nullable<Int64>)

使用给定选项调用 DBCC CHECKDB

public System.Collections.Specialized.StringCollection CheckTables(Microsoft.SqlServer.Management.Smo.RepairType repairType, Microsoft.SqlServer.Management.Smo.RepairOptions repairOptions, Microsoft.SqlServer.Management.Smo.RepairStructure repairStructure, long? maxDOP = default);
member this.CheckTables : Microsoft.SqlServer.Management.Smo.RepairType * Microsoft.SqlServer.Management.Smo.RepairOptions * Microsoft.SqlServer.Management.Smo.RepairStructure * Nullable<int64> -> System.Collections.Specialized.StringCollection
Public Function CheckTables (repairType As RepairType, repairOptions As RepairOptions, repairStructure As RepairStructure, Optional maxDOP As Nullable(Of Long) = Nothing) As StringCollection

参数

repairType
RepairType
repairOptions
RepairOptions
repairStructure
RepairStructure
maxDOP
Nullable<Int64>

返回

DBCC CHECKDB 返回的消息

适用于