Backup 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
public sealed class Backup : Microsoft.SqlServer.Management.Smo.BackupRestoreBase
type Backup = class
inherit BackupRestoreBase
Public NotInheritable Class Backup
Inherits BackupRestoreBase
- 继承
构造函数
| 名称 | 说明 |
|---|---|
| Backup() | |
字段
| 名称 | 说明 |
|---|---|
| currentAsyncOperation | (继承自 BackupRestoreBase) |
| m_BackupAction | (继承自 BackupRestoreBase) |
| m_LogTruncation | (继承自 BackupRestoreBase) |
| m_RestoreAction | (继承自 BackupRestoreBase) |
属性
方法
| 名称 | 说明 |
|---|---|
| Abort() |
中止当前操作(如果有) (继承自 BackupRestoreBase) |
| CheckForHADRMaintPlan(Server, StringBuilder) |
如果从维护计划调用,请检查是否已启用 HADR (继承自 BackupRestoreBase) |
| ExecuteSql(Server, StringCollection) | (继承自 BackupRestoreBase) |
| ExecuteSqlAsync(Server, StringCollection) | (继承自 BackupRestoreBase) |
| ExecuteSqlWithResults(Server, String) | (继承自 BackupRestoreBase) |
| GetDevicesScript(StringBuilder, BackupDeviceList, ServerVersion) | (继承自 BackupRestoreBase) |
| IsStringValid(String) | (继承自 BackupRestoreBase) |
| Script(Server) |
为当前备份操作生成脚本 |
| SetMediaPassword(SecureString) |
已过时.
(继承自 BackupRestoreBase)
|
| SetMediaPassword(String) |
已过时.
(继承自 BackupRestoreBase)
|
| SetPassword(SecureString) | (继承自 BackupRestoreBase) |
| SetPassword(String) | (继承自 BackupRestoreBase) |
| SqlBackup(Server) |
同步运行备份操作,即函数调用会阻止备份,直到备份完成。 |
| SqlBackupAsync(Server) |
异步运行备份操作,即调用会立即返回,备份操作在后台运行 |
| Wait() |
等待当前异步操作完成。 (继承自 BackupRestoreBase) |
活动
| 名称 | 说明 |
|---|---|
| Complete |
完成事件 (继承自 BackupRestoreBase) |
| Information |
信息事件 (继承自 BackupRestoreBase) |
| NextMedia |
NextMedia 事件 (继承自 BackupRestoreBase) |
| PercentComplete |
PercentComplete 事件 (继承自 BackupRestoreBase) |