Restore Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public sealed class Restore : Microsoft.SqlServer.Management.Smo.BackupRestoreBase
type Restore = class
inherit BackupRestoreBase
Public NotInheritable Class Restore
Inherits BackupRestoreBase
- Inheritance
Constructors
Restore() | |
Restore(String, BackupSet) |
Creates a Restore object |
Fields
currentAsyncOperation | (Inherited from BackupRestoreBase) |
m_BackupAction | (Inherited from BackupRestoreBase) |
m_LogTruncation | (Inherited from BackupRestoreBase) |
m_RestoreAction | (Inherited from BackupRestoreBase) |
VerifyComplete |
An event raised at the end of SqlVerify operation. It indicates if verification succeeded or not. |
Properties
Methods
Abort() |
Aborts the current action, if any (Inherited from BackupRestoreBase) |
CheckForHADRMaintPlan(Server, StringBuilder) |
If invoked from Maintenance plan Check if HADR is enabled (Inherited from BackupRestoreBase) |
ClearSuspectPageTable(Server) | |
ExecuteSql(Server, StringCollection) | (Inherited from BackupRestoreBase) |
ExecuteSqlAsync(Server, StringCollection) | (Inherited from BackupRestoreBase) |
ExecuteSqlWithResults(Server, String) | (Inherited from BackupRestoreBase) |
GetDevicesScript(StringBuilder, BackupDeviceList, ServerVersion) | (Inherited from BackupRestoreBase) |
IsStringValid(String) | (Inherited from BackupRestoreBase) |
ReadBackupHeader(Server) | |
ReadFileList(Server) | |
ReadMediaHeader(Server) | |
ReadSuspectPageTable(Server) | |
Script(Server) | |
SetMediaPassword(SecureString) |
Obsolete.
(Inherited from BackupRestoreBase)
|
SetMediaPassword(String) |
Obsolete.
(Inherited from BackupRestoreBase)
|
SetPassword(SecureString) | (Inherited from BackupRestoreBase) |
SetPassword(String) | (Inherited from BackupRestoreBase) |
SqlRestore(Server) |
Runs Restore operation in a synchronous way, i.e. the call blocks until verification is completed. |
SqlRestoreAsync(Server) |
Runs Restore operation in an asynchronous way, i.e. the call returns immediately and verify operation continues in background. |
SqlVerify(Server, Boolean, String) |
Runs Verify operation in a synchronous way, i.e. the call blocks until verification is completed. |
SqlVerify(Server, Boolean) |
Runs Verify operation in a synchronous way, i.e. the call blocks until verification is completed. |
SqlVerify(Server, String) |
Runs Verify operation in a synchronous way, i.e. the call blocks until verification is completed. |
SqlVerify(Server) |
Runs Verify operation in a synchronous way, i.e. the call blocks until verification is completed. |
SqlVerifyAsync(Server, Boolean) |
Runs Verify operation in an asynchronous way, i.e. the call returns immediately and verify operation continues in background. |
SqlVerifyAsync(Server) |
Runs Verify operation in an asynchronous way, i.e. the call returns immediately and verify operation continues in background. |
SqlVerifyLatest(Server, SqlVerifyAction, String) |
Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined. |
SqlVerifyLatest(Server, SqlVerifyAction) |
Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined. |
SqlVerifyLatest(Server, String) |
Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined. |
SqlVerifyLatest(Server) |
Performs a verify on the last backup recorded in the backup history. FileNumber will be ignored, as the latest file number will be automatically determined. |
Wait() |
Waits for the current asynchronous action to complete. (Inherited from BackupRestoreBase) |
Events
Complete |
Complete event (Inherited from BackupRestoreBase) |
Information |
Information event (Inherited from BackupRestoreBase) |
NextMedia |
NextMedia event (Inherited from BackupRestoreBase) |
PercentComplete |
PercentComplete event (Inherited from BackupRestoreBase) |