数据库名称: 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
想请教前辈们,有遇过这样子的情况吗?
显示错误,但是备份却成功..
还麻烦指导了,谢谢。