Veeam Backup 从数据据删除备份任务
温馨提示:
本文最后更新于 2021年06月08日,已超过 1,246 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我。
从数据据删除备份任务
DECLARE @BackupID uniqueidentifier
SET @BackupID = '4A28B061-0218-4FDE-A8D6-4E1995E34B95' 《--备份JOBID 【Backup.Model.Backups】
delete [Backup.Model.OIBs] from [Backup.Model.OIBs]
join [Backup.Model.Points] on
[backup.model.oibs].point_id = [backup.model.points].id
where [backup.model.points].backup_id = @BackupID
delete [Backup.Model.OIBs] from [Backup.Model.OIBs]
join [Backup.Model.Storages] on
[backup.model.oibs].storage_id = [Backup.Model.Storages].id
where [Backup.Model.Storages].backup_id = @BackupID
delete from [backup.model.points] where backup_id = @BackupID
delete from [Backup.Model.Storages] where backup_id = @BackupID
delete from [Backup.Model.Backups] where id = @BackupID
正文到此结束
- 本文标签: 杂谈
- 本文链接: http://www.iamlk.cn/article/113
- 版权声明: 本文由Leonidax原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权