FIX: SQL Server Does Not Run RESTOREVERIFYONLY When Scheduling a Back Up in SQL Enterprise Manager (279015)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q279015
BUG #: 57268 (SQLBUG_70)
BUG #: 218599 (SHILOH_BUGS)
SYMPTOMS
If you back up a database with SQL Enterprise Manager (SEM) and you check Verify backup upon completion under the Option tab, SQL Server issues the following commands: BACKUP DATABASE and RESTORE VERIFYONLY. RESTORE VERIFYONLY checks whether the backup set is complete and whether all volumes are readable.
For example, if you back up the Pubs database to a backup device called Test, SQL server runs the following two SQL commands:
BACKUP DATABASE [pubs] TO [test] WITH INIT , NOUNLOAD , NAME = N'pubs backup', NOSKIP , STATS = 10, NOFORMAT
go
RESTORE VERIFYONLY FROM [test] WITH FILE = 1 , NOUNLOAD
However, if you schedule a job through the SQL Enterprise Manager to do the same database back up, SQL Server only schedules BACKUP DATABASE without the RESTORE VERIFYONLY option.
RESOLUTIONSQL Server 2000To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
SQL Server 7.0To resolve this problem, obtain the latest service pack for SQL Server 7.0. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
301511 INF: How to Obtain the Latest SQL Server 7.0 Service Pack
WORKAROUND
Because the scheduled backup job does not do the verification, you can change the job step manually from
BACKUP DATABASE [pubs] TO [test] WITH INIT , NOUNLOAD , NAME = N'pubs backup', NOSKIP , STATS = 10, NOFORMAT
to:
BACKUP DATABASE [pubs] TO [test] WITH INIT , NOUNLOAD , NAME = N'pubs backup', NOSKIP , STATS = 10, NOFORMAT
DECLARE @i INT
select @i = position from msdb..backupset where database_name='pubs'and type!='F' and backup_set_id=(select max(backup_set_id) from msdb..backupset where database_name='pubs')
RESTORE VERIFYONLY FROM [test] WITH FILE = @i
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. SQL Server 2000 This problem was first corrected in SQL Server 2000 Service Pack 1.SQL Server 7.0 This problem was first corrected in SQL Server 7.0 Service Pack 3.
Modification Type: | Major | Last Reviewed: | 10/28/2003 |
---|
Keywords: | kbBug kbfix kbSQLServ2000sp1fix KB279015 |
---|
|