Partager via


BackupRestoreBase Class

Definition

public class BackupRestoreBase
type BackupRestoreBase = class
Public Class BackupRestoreBase
Inheritance
BackupRestoreBase
Derived

Constructors

BackupRestoreBase()

base class constructor

Fields

currentAsyncOperation
m_BackupAction
m_LogTruncation
m_RestoreAction

Properties

AsyncStatus

A status of most recent asynchronous operation, including possible errors.

BlockSize
BufferCount
Checksum
ContinueAfterError
CredentialName

Gets or sets the credential name that is used by Backup to Url

Database
DatabaseFileGroups
DatabaseFiles
Devices

A list of devices used as a target for backup

MaxTransferSize
MediaName
NoRecovery
NoRewind
PercentCompleteNotification
Restart
RetryFailedQueries
UnloadTapeAfter

Methods

Abort()

Aborts the current action, if any

CheckForHADRMaintPlan(Server, StringBuilder)

If invoked from Maintenance plan Check if HADR is enabled

ExecuteSql(Server, StringCollection)
ExecuteSqlAsync(Server, StringCollection)
ExecuteSqlWithResults(Server, String)
GetDevicesScript(StringBuilder, BackupDeviceList, ServerVersion)
IsBackupFileDeviceSupported(DatabaseEngineEdition)

Helper to check if BackupToFile is supported on the connected server edition. SQL Managed Instances do not support backup to file.

IsBackupUrlDeviceSupported(ServerVersion)

Helper to check if BackupToUrl is supported on the connected server version

IsStringValid(String)
SetMediaPassword(SecureString)
SetMediaPassword(String)
SetPassword(SecureString)
SetPassword(String)
Wait()

Waits for the current asynchronous action to complete.

Events

Complete

Complete event

Information

Information event

NextMedia

NextMedia event

PercentComplete

PercentComplete event

Applies to