Udostępnij za pośrednictwem


Metoda CheckTables (RepairType, RepairOptions, RepairStructure)

Sprawdza integralność bazy danych stron dla wszystkich tabel i indeksów, określone w tabelach bazy danych.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Syntax

'Deklaracja
Public Function CheckTables ( _
    repairType As RepairType, _
    repairOptions As RepairOptions, _
    repairStructure As RepairStructure _
) As StringCollection
'Użycie
Dim instance As Database
Dim repairType As RepairType
Dim repairOptions As RepairOptions
Dim repairStructure As RepairStructure
Dim returnValue As StringCollection

returnValue = instance.CheckTables(repairType, _
    repairOptions, repairStructure)
public StringCollection CheckTables(
    RepairType repairType,
    RepairOptions repairOptions,
    RepairStructure repairStructure
)
public:
StringCollection^ CheckTables(
    RepairType repairType, 
    RepairOptions repairOptions, 
    RepairStructure repairStructure
)
member CheckTables : 
        repairType:RepairType * 
        repairOptions:RepairOptions * 
        repairStructure:RepairStructure -> StringCollection 
public function CheckTables(
    repairType : RepairType, 
    repairOptions : RepairOptions, 
    repairStructure : RepairStructure
) : StringCollection

Parameters

Wartość zwracana

Typ: System.Collections.Specialized. . :: . .StringCollection
Element StringCollection wartość obiektu zawierającego raport o integralność tabel i indeksów w bazie danych.