Solved

Howto Bulk restore 500 db MS12

Posted on 2015-01-15
2
25 Views
Last Modified: 2016-05-18
Need to bulk move and restore 500 database to a new MS SQL 2012 sql instance. They are data.bak files.  It seems because of a having a new database server have to restore each one individually. How can restore them all in a bulk on a windows 2012 MS SQL server.
0
Comment
Question by:williamfl
2 Comments
 
LVL 29

Accepted Solution

by:
Rich Weissler earned 500 total points
ID: 40553223
If I understand the question, you already have the databases backed up to .bak files.  Are they all in one file, or in 500 different individual backup files?
I'd be awfully tempted to write a script to generate a TSQL script with the individual restore commands to plug through the restores.  I'd probably use someone else's script as a starting point.  Do you still have access to the old server's master database, so you can at least pull the databases from sys.databases or the equivalent?
0
 
LVL 45

Expert Comment

by:Vitor Montalvão
ID: 40553631
So, you'll have a single instance with 500 databases!?
Consolidation is good but don't exaggerate.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

706 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

17 Experts available now in Live!

Get 1:1 Help Now