[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

SQL Server 2005 Restore multiple databases from one device

Posted on 2010-01-06
8
Medium Priority
?
430 Views
Last Modified: 2013-11-30
I backed up multiple databases to a single backup device in SQL Server 2005.

If I look at the content I see all the DB Backups properly listed. However if I go to restore any database I can only restore the first database that's in the backup device. If I run the command
"Restore FileListOnly From <device>" I only see the first database backup!

Is it possible to restore each database? If, yes how?
0
Comment
Question by:lostlinkpr
  • 4
  • 4
8 Comments
 
LVL 60

Expert Comment

by:chapmandew
ID: 26193637
there should be an option for you to check which db you want to restore....
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 26193713
for example, i did a quick backup 3 times to the same file, and show here how I could restore the middle one if I wanted:
restoremulti.JPG
0
 
LVL 1

Author Comment

by:lostlinkpr
ID: 26193923
--Update--

If I run the command "Restore headerOnly from <backup-device>" I do get the entire list of databases.

@chapmandew
I did do that already and it does list all DB backups but after selecting any of the backup listed it always tries to restore the first one.  When I go to options on the left-side menu I can see that the DB name of the database is trying to restore matches the DB Backup #1.



For instance
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
LVL 1

Author Comment

by:lostlinkpr
ID: 26199799
I have increased the points for this question.
Please provide any advise possible.
Thanks!
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 2000 total points
ID: 26199945
restore headeronly from disk = 'c:\yourbackupname' with file=1

swap out file = x for whichever backup you want to use.
0
 
LVL 1

Author Comment

by:lostlinkpr
ID: 26204852
I tested the backup on a 2008 instance and I have no issues, so I upgraded mine from 2005 on dev and it works well.

@Chapmandew I tried your command and it listed the specific backup. Then ran the restore database command with the same parameters and it worked. Therfore I'm giving you the points.

Thank you!
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 26204868
awesome!
0
 
LVL 1

Author Closing Comment

by:lostlinkpr
ID: 31673663
Gave partially on "Easy to follow" because I had to figure out how to restore the DB from command line by looking at documentation. (I'm not a DBA).
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

873 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