Backup 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 Backup : Microsoft.SqlServer.Management.Smo.BackupRestoreBase
type Backup = class
inherit BackupRestoreBase
Public NotInheritable Class Backup
Inherits BackupRestoreBase
- Inheritance
Constructors
Backup() |
Fields
currentAsyncOperation | (Inherited from BackupRestoreBase) |
m_BackupAction | (Inherited from BackupRestoreBase) |
m_LogTruncation | (Inherited from BackupRestoreBase) |
m_RestoreAction | (Inherited from BackupRestoreBase) |
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) |
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) |
Script(Server) |
Generates script for the current backup operation |
SetMediaPassword(SecureString) |
Obsolete.
(Inherited from BackupRestoreBase)
|
SetMediaPassword(String) |
Obsolete.
(Inherited from BackupRestoreBase)
|
SetPassword(SecureString) | (Inherited from BackupRestoreBase) |
SetPassword(String) | (Inherited from BackupRestoreBase) |
SqlBackup(Server) |
Runs backup operation synchronously, i.e. the function call blocks untill the backup is done. |
SqlBackupAsync(Server) |
Runs backup operation asynchronously, i.e. the call returns immediately, and the backup operation runs in the background |
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) |