467,858 Members | 1,699 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,858 developers. It's quick & easy.

SQL Server backup error

Hi,

I have scheduled backup job on MS SQL server which appends full
backup, verifies it and then it should eject tape. But upon finishing
it says that job failed.
I checked backup and it seems okay, database was backup-ed on tape and
tape was ejected at the end of execution but job status was failed.

Here is a code of backup procedure created with "backup database"
option.

BACKUP DATABASE [Trading17Replika] TO TAPE = N'\\.\Tape0' WITH
NOINIT , UNLOAD , NAME = N'Trading17Replika backup', NOSKIP ,
STATS = 10, NOFORMAT , MEDIANAME = N'B'DECLARE @i INT
select @i = position from msdb..backupset where
database_name='Trading17Replika'and type!='F' and
backup_set_id=(select max(backup_set_id) from msdb..backupset where
database_name='Trading17Replika')
RESTORE VERIFYONLY FROM TAPE = N'\\.\Tape0' WITH FILE = @i

If I change "UNLOAD" to "NOUNLOAD" (avoid ejecting tape) then
everything passes OK.

Thanks in advance

Jul 20 '05 #1
  • viewed: 1757
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by nt | last post: by
1 post views Thread by microsoft . public . sqlserver | last post: by
2 posts views Thread by m19peters | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.