Article ID: 319701 - Last Review: October 30, 2003 - Revision: 3.2 FIX: SQL Enterprise Manager RESTORE Msdb Leaves Database in Loading State and Does Not Apply Differential or Log BackupsThis article was previously published under Q319701
BUG #: 355915 (SHILOH_BUG) BUG #: 102086 (SQLBUG_70) On This PageSYMPTOMS
A restore of the msdb system database leaves the database in a loading state (unrecovered) and changes in the differential and log backups are not applied if the following conditions are true:
RESOLUTIONTo resolve this problem, obtain the latest service pack for Microsoft SQL Server 7.0. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
301511
(http://support.microsoft.com/kb/301511/EN-US/
)
INF: How to Obtain the Latest SQL Server 7.0 Service Pack
WORKAROUND
To work around this behavior, restore the msdb database from Query Analyzer by using the Transact-SQL RESTORE commands instead of through SEM.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft SQL Server 7.0 Service Pack 4. MORE INFORMATION
When you restore the msdb database from Enterprise Manager, it reports the following error message:
Database 'msdb' cannot be opened. It is in the middle of a restore Could not insert a backup or restore history/detail record in the msdb database. This may indicate a problem with the msdb database. The backup/restore operation was still successful. RESTORE DATABASE successfully processed 1217 pages in 2.268 seconds (4.392 MB/sec). The following example restores a full database backup, followed by a differential backup, and ends with a transaction log backup:
Processed 1216 pages for database 'Msdb', file 'MSDBData' on file 1. Processed 1 pages for database 'Msdb', file 'MSDBLog' on file 1. Server: Msg 927, Level 14, State 2, Line 1 Database 'msdb' cannot be opened. It is in the middle of a restore. Server: Msg 3009, Level 16, State 3, Line 1 Could not insert a backup or restore history/detail record in the msdb database. This may indicate a problem with the msdb database. The backup/restore operation was still successful. Backup or restore operation successfully processed 1217 pages in 3.776 seconds (2.638 MB/sec). Processed 984 pages for database 'Msdb', file 'MSDBData' on file 1. Processed 1 pages for database 'Msdb', file 'MSDBLog' on file 1. Server: Msg 927, Level 14, State 2, Line 1 Database 'msdb' cannot be opened. It is in the middle of a restore. Server: Msg 3009, Level 16, State 3, Line 1 Could not insert a backup or restore history/detail record in the msdb database. This may indicate a problem with the msdb database. The backup/restore operation was still successful. Backup or restore operation successfully processed 985 pages in 1.762 seconds (4.575 MB/sec). Processed 2 pages for database 'Msdb', file 'MSDBLog' on file 1. Backup or restore operation successfully processed 2 pages in 0.004 seconds (3.712 MB/sec). REFERENCESSQL Server Books Online; topic: "RESTORE"
| Article Translations
|
Back to the top
