Restore.ClearSuspectPageTable Método
Deletes entries in the suspect page table.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)
Sintaxis
'Declaración
Public Sub ClearSuspectPageTable ( _
srv As Server _
)
'Uso
Dim instance As Restore
Dim srv As Server
instance.ClearSuspectPageTable(srv)
public void ClearSuspectPageTable(
Server srv
)
public:
void ClearSuspectPageTable(
Server^ srv
)
member ClearSuspectPageTable :
srv:Server -> unit
public function ClearSuspectPageTable(
srv : Server
)
Parámetros
- srv
Tipo: Microsoft.SqlServer.Management.Smo.Server
The instance of SQL Server that is targeted by the restore operation.
Ejemplos
The following code example deletes all entries in the restore suspect page table.
VB
Dim srv As Server
srv = New Server
Dim rs As Restore
rs = New Restore
rs.ClearSuspectPageTable(srv)
PowerShell
$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.ClearSuspectPageTable($srv)
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo
Otros recursos
Realizar copias de seguridad y restaurar bases de datos de SQL Server