Home  >  Article  >  php教程  >  SQL Server自动备份无法删除过期的备份文件

SQL Server自动备份无法删除过期的备份文件

WBOY
WBOYOriginal
2016-06-13 10:04:531420browse

数据库服务器每天凌晨两点进行数据库备份,同时对5天前的数据库备份文件进行删除,不然的话就会把硬盘给撑爆的
windows的日志里给出信息:
SQL Server Scheduled Job 'DB 维护计划“数据库维护计划1”的 DB 备份作业。' (0x2DA54A5BBEFC2B4A874428B91602C52A) - Status: 失败 - Invoked on: 2005-09-09 01:00:00 - Message: 作业失败。
  调度 28 (第 1 调度) 唤醒调用了该作业。最后运行的步骤是第 1 步(第 1 步)。
sql server里给出的日志:
sqlmaint.exe failed [SQLSTATE 42000]
相关的微软给出的kb
http://support.microsoft.com/?kbid=288577
http://support.microsoft.com/kb/303292/EN-US/
好像讲得一头雾水。
后来才发现是原来那些要备份的数据库中,其中有一个是脱机的,结果导致不能把它备份,也不能把它过期的删除掉,没办法,只好把它重新朕机上了。


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn