语言

BackupRestoreBase 类

定义

public class BackupRestoreBase
type BackupRestoreBase = class
Public Class BackupRestoreBase
继承
BackupRestoreBase
派生

构造函数

名称 说明
BackupRestoreBase()

基类构造函数

字段

名称 说明
currentAsyncOperation
m_BackupAction
m_LogTruncation
m_RestoreAction

属性

名称 说明
AsyncStatus

最新异步操作的状态,包括可能的错误。

BlockSize
BufferCount
Checksum
ContinueAfterError
CredentialName

获取或设置备份到 URL 使用的凭据名称

Database
DatabaseFileGroups
DatabaseFiles
Devices

用作备份目标的设备列表

MaxTransferSize
MediaName
NoRecovery
NoRewind
Options
PercentCompleteNotification
Restart
RetryFailedQueries
UnloadTapeAfter

方法

名称 说明
Abort()

中止当前操作(如果有)

CheckForHADRMaintPlan(Server, StringBuilder)

如果从维护计划调用,请检查是否已启用 HADR

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

用于检查连接服务器版本是否支持 BackupToFile 的帮助程序。 SQL 托管实例不支持备份到文件。

IsBackupUrlDeviceSupported(ServerVersion)

用于检查连接服务器版本是否支持 BackupToUrl 的帮助程序

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

等待当前异步操作完成。

活动

名称 说明
Complete

完成事件

Information

信息事件

NextMedia

NextMedia 事件

PercentComplete

PercentComplete 事件

适用于