Solved

MS SQL 2005 Restore issue

Posted on 2010-11-11
11
972 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 23

Author Comment

by:yo_bee
ID: 34115203
recovery mode is FULL
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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 23

Author Comment

by:yo_bee
ID: 34115286
thats a good question.  I do not remember.
What should I do?
0
 
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 23

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 23

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 23

Author Closing Comment

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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

624 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