Solved

MS SQL 2005 Restore issue

Posted on 2010-11-11
11
950 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
Comment Utility
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
Comment Utility
is that temp database in recovery mode ?
0
 
LVL 21

Author Comment

by:yo_bee
Comment Utility
recovery mode is FULL
0
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
Comment Utility
i mean the database state, did you restore it as in "recovery" or "norecovery"
 
0
 
LVL 21

Author Comment

by:yo_bee
Comment Utility
thats a good question.  I do not remember.
What should I do?
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 75

Expert Comment

by:Aneesh Retnakaran
Comment Utility
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 21

Author Comment

by:yo_bee
Comment Utility
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
Comment Utility
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 21

Author Comment

by:yo_bee
Comment Utility
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
Comment Utility
0
 
LVL 21

Author Closing Comment

by:yo_bee
Comment Utility
This was very straight forward.
Thanks for the help.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

763 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

6 Experts available now in Live!

Get 1:1 Help Now