Backup Methods

The Backup type exposes the following members.

  NameDescription
Public method Abort() Terminates a running backup or restore operation. (Inherited from BackupRestoreBase.)
Public method Equals(Object) (Inherited from Object.)
Protected method ExecuteSql(Server, StringCollection) Executes a batch of Transact-SQL statements that does not expect a returned results set on the specified instance of SQL Server. (Inherited from BackupRestoreBase.)
Protected method ExecuteSqlAsync(Server, StringCollection) Executes a batch of Transact-SQL statements asynchronously that does not expect a returned results set on the specified instance of SQL Server. (Inherited from BackupRestoreBase.)
Protected method ExecuteSqlWithResults(Server, String) Executes a batch of Transact-SQL statements that expects one or more returned results sets on the specified instance of SQL Server. (Inherited from BackupRestoreBase.)
Protected method Finalize() (Inherited from Object.)
Protected method GetDevicesScript(StringBuilder, BackupDeviceList, ServerVersion) (Inherited from BackupRestoreBase.)
Public method GetHashCode() (Inherited from Object.)
Public method GetType() (Inherited from Object.)
Protected method IsStringValid(String) Verifies whether the specified string is valid. (Inherited from BackupRestoreBase.)
Protected method MemberwiseClone() (Inherited from Object.)
Public method Script(Server) Returns a Transact-SQL statement that can be used to execute the referenced backup. 
Public method SetMediaPassword(SecureString) Sets the password for a media set. (Inherited from BackupRestoreBase.)
Public method SetMediaPassword(String) Sets the password for a media set. (Inherited from BackupRestoreBase.)
Public method SetPassword(SecureString) Sets the password for a backup set. (Inherited from BackupRestoreBase.)
Public method SetPassword(String) Sets the password for a backup set. (Inherited from BackupRestoreBase.)
Public method SqlBackup(Server) Performs the database backup operation as specified by the properties of the Backup object used.
Public method SqlBackupAsync(Server) Performs the database backup operation asynchronously as specified by the properties of the Backup object used.
Public method ToString() (Inherited from Object.)
Public method Wait() Waits for the current backup or restore operation to complete before moving on to the next process. (Inherited from BackupRestoreBase.)
Top

Community Additions

ADD
Show: