Solved

Howto Bulk restore 500 db MS12

Posted on 2015-01-15
2
40 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 30

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 49

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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
Help needed in sql query 4 26
SQL Server Resume 5 44
access to sql migration 5 19
Make an array show the subkey and put it in a query 2 20
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

685 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