BUG: DCR: Enterprise Manager May Allow You to Select Backups that No Longer Exist (275696)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q275696
BUG #: 58487 (SQLBUG_70)
BUG #: 236560 (SHILOH)
SYMPTOMS
SQL Server Enterprise Manager may allow you to select and restore backups that no longer exist. Enterprise Manager may then either restore the latest backup or an error may occur while restoring.
CAUSE
Enterprise Manager reads the backupset and backupmediafamily tables from the msdb database to populate the restore database screen with the list of backups. These tables store a history of backups. The tables are not updated when a backup is overwritten with a BACKUP WITH INIT statement.
WORKAROUND
Use RESTORE HEADERONLY to verify the contents of the backup device.
A sample RESTORE HEADERONLY statement and output follows:
RESTORE HEADERONLY FROM DISK='D:\pubstrial.bak'
A subset of the output is:
BackupName UserName ServerName DatabaseName BackupStartDate BackupFinishDate
--------------------- -------- ---------- ------------ ------------------------ ------------------------
pubstrial sa TEST22 pubs 2000-12-08 14:21:36.000 2000-12-08 14:21:38.000
pubs backup sa TEST22 pubs 2000-12-08 14:21:47.000 2000-12-08 14:21:48.000
You can look at the BackupStartDate and BackupFinishDate columns to determine the correct backup to restore.
If no other backups are taken after you perform a BACKUP WITH INIT, then the Restore Headeronly statement should return only one record.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0 and SQL Server 2000.
Modification Type: | Major | Last Reviewed: | 10/17/2003 |
---|
Keywords: | kbBug kbpending KB275696 |
---|
|