|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Yesterday @ 2:18 PM
Points: 236,
Visits: 748
|
|
I have restored a database to a new name. The original name is forms. The new database is forms_scott(Restoring). When I try to restore a log:
RESTORE LOG [forms_scott] FROM DISK = N'D:\sqlbackups\forms\Forms_backup_2013_02_17_130013_8884015.trn' WITH FILE = 1, NORECOVERY, NOUNLOAD, STATS = 10 GO
I get:
Msg 3154, Level 16, State 4, Line 1 The backup set holds a backup of a database other than the existing 'forms_scott' database. Msg 3013, Level 16, State 1, Line 1 RESTORE LOG is terminating abnormally.
How can I restore a log to a new db name?
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Tuesday, May 21, 2013 2:12 AM
Points: 1,322,
Visits: 4,400
|
|
That should work... are you sure the transaction log backup file actually has a backup of the original forms database?
Run a restore of the log with headeronly to verify.
RESTORE HEADERONLY FROM DISK = N'D:\sqlbackups\forms\Forms_backup_2013_02_17_130013_8884015.trn'
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Today @ 6:01 AM
Points: 36,
Visits: 272
|
|
| Did you restore over an existing database without using the overwrite flag?
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Yesterday @ 2:18 PM
Points: 236,
Visits: 748
|
|
No, I am trying to restore to a new database name while the existing one stays in place.
I ended up having him restore the database to another server with the original name and then I am restoring the logs. Of course, now he keeps putting it in recovery mode, so I cannot do logs. Hopefully, we'll get where I can restore some logs...
When he did the restore originally, the database had next to it something like "restoring..." instead of the "recovering...". Thus, I Don't think he did the right type of restore.
|
|
|
|