ClearSuspectPageTable 方法
Deletes entries in the suspect page table.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)
语法
声明
Public Sub ClearSuspectPageTable ( _
srv As Server _
)
用法
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
)
参数
- srv
类型:Microsoft.SqlServer.Management.Smo. . :: . .Server
A Server object that represents the instance of SQL Server that is targeted by the restore operation.
示例
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)