Solved

MS SQL 2005 Restore issue

Posted on 2010-11-11
11
967 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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
 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

830 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