Restore.ClearSuspectPageTableAfterRestore Property

 

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

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)

member ClearSuspectPageTableAfterRestore : bool with get, set

Property Value

Type: 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).

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
Return to top
Show: