Solved

MS SQL 2005 Restore issue

Posted on 2010-11-11
11
956 Views
Last Modified: 2012-08-14
I have a situation with a Database that I need to restore to a temp database.
The issue I have is that I did a full backup  using Symantec Backup Exec  to tape and I have differentials backups to disk since the last full backup.
I restored the full from tape to a temp DB, but when I try to restore the differential backup I get an error.

Msg 3219, Level 16, State 3, Line 1
The file or filegroup "<originalDB>_log" cannot be selected for this operation.
Msg 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

Is there a way that I can get this to work?
0
Comment
Question by:yo_bee
  • 5
  • 3
  • 2
  • +1
11 Comments
 
LVL 8

Expert Comment

by:gothamite
ID: 34114383
Looks like you might be trying to use a restore database command to restore a transaction log file. If the ..._log file is in fact a valid transaction log backup you should be able to restore it with RESTORE LOG command.
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 34114496
is that temp database in recovery mode ?
0
 
LVL 22

Author Comment

by:yo_bee
ID: 34115203
recovery mode is FULL
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 34115232
i mean the database state, did you restore it as in "recovery" or "norecovery"
 
0
 
LVL 22

Author Comment

by:yo_bee
ID: 34115286
thats a good question.  I do not remember.
What should I do?
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 34117512
can you see the tables in the database ? in that case try restoring the database with 'recovery' option and try applying the logs
0
 
LVL 22

Author Comment

by:yo_bee
ID: 34117550
I have a differential and do not have a trn backup that covers the window needed. If i had the trn backups I think i would be ok
0
 
LVL 16

Accepted Solution

by:
EvilPostIt earned 500 total points
ID: 34119464
If you are doing this from the GUI then will need to ensure that you are restoring the database with NORECOVERY, this will allow you to restore more backups afterwards.

Please see attatched screeenshot

NORECOVERY SETTING
0
 
LVL 22

Author Comment

by:yo_bee
ID: 34131537
I tried what you suggested and received this error when trying to apply the Diff.bak
DiffRestoreError..JPG
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 34131980
0
 
LVL 22

Author Closing Comment

by:yo_bee
ID: 34139542
This was very straight forward.
Thanks for the help.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now