Compartir a través de


Restore.ClearSuspectPageTableAfterRestore Propiedad

Gets or sets a Boolean value that determines whether entries in the suspect page table will be deleted following the restore operation.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)

Sintaxis

'Declaración
Public Property ClearSuspectPageTableAfterRestore As Boolean 
    Get 
    Set
'Uso
Dim instance As Restore 
Dim value As Boolean 

value = instance.ClearSuspectPageTableAfterRestore

instance.ClearSuspectPageTableAfterRestore = value
public bool ClearSuspectPageTableAfterRestore { get; set; }
public:
property bool ClearSuspectPageTableAfterRestore {
    bool get ();
    void set (bool value);
}
member ClearSuspectPageTableAfterRestore : bool with get, set
function get ClearSuspectPageTableAfterRestore () : boolean 
function set ClearSuspectPageTableAfterRestore (value : boolean)

Valor de la propiedad

Tipo: System.Boolean
A Boolean value that indicates whether the suspect page table will be cleared.If True, the suspect page table is cleared following the restore operation. Otherwise, False (default).

Ejemplos

The following code example shows how to set the suspect page table to be cleared after the restore operation is complete.

VB

Dim rs As Restore
rs = New Restore
rs.ClearSuspectPageTableAfterRestore = true

PowerShell

$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.ClearSuspectPageTableAfterRestore = $TRUE

Vea también

Referencia

Restore Clase

Espacio de nombres Microsoft.SqlServer.Management.Smo

Otros recursos

RESTORE (Transact-SQL)

Realizar copias de seguridad y restaurar bases de datos de SQL Server