[系统] MSSQL SERVER备份失败

楼主: bernachom (Terry)   2014-11-21 08:19:34
数据库名称: MSSQL SERVER
数据库版本: 2014
作业平台: WINDOWS SERVER 2012
问题描述:
不好意思,请教一下,最近有更改了备份排程
但是却出现了错误,可是实际上是有备份成功的@@
备份错误但有成功的图示:http://ppt.cc/TJ5y
然后我的备份SCRIPT是系统产出来的
BACKUP LOG [DATABASE] TO [DATABASE_LOG] WITH RETAINDAYS = 7, NOFORMAT,
INIT, NAME = N'DATABASE-完整 数据库 备份', NOSKIP, NOREWIND, NOUNLOAD,
STATS = 10, CHECKSUM
GO
declare @backupSetId as int
select @backupSetId = position from msdb..backupset where
database_name=N'DATABASE' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'DATABASE' )
if @backupSetId is null begin raiserror(N'确认失败。找不到数据库 ''DATABASE''
的备份资讯。', 16, 1) end
RESTORE VERIFYONLY FROM [DATABASE_LOG] WITH FILE = @backupSetId, NOUNLOAD, NOREWIND
想请教前辈们,有遇过这样子的情况吗?
显示错误,但是备份却成功..
还麻烦指导了,谢谢。
作者: propecia (i'll see u in next life)   2014-11-21 16:58:00
去掉最后的 WITH F 再备一次试试!
作者: waterpeng (水语猫灵)   2014-11-22 01:09:00
底下是子步骤...有可能显示正常但最后结果是失败的...要不要把详细的log都贴上来判断一下..

Links booklink

Contact Us: admin [ a t ] ucptt.com