Skip to content

Commit

Permalink
Update 2- RESTORE Databases.sql
Browse files Browse the repository at this point in the history
Updated to pickup all Data backups
  • Loading branch information
markjones-msft authored Mar 22, 2023
1 parent 3c378e7 commit 2122c52
Showing 1 changed file with 27 additions and 30 deletions.
57 changes: 27 additions & 30 deletions Build/Database Build/2- RESTORE Databases.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ USE master
GO

-- CTRL + H (REPLACE) foler path to your server
RESTORE DATABASE TEAM01_TenantDataDb FROM DISK = 'C:\Backups\TEAM1_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM1.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM1.ldf'
RESTORE DATABASE TEAM02_TenantDataDb FROM DISK = 'C:\Backups\TEAM2_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM2.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM2.ldf'
RESTORE DATABASE TEAM03_TenantDataDb FROM DISK = 'C:\Backups\TEAM3_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM3.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM3.ldf'
RESTORE DATABASE TEAM04_TenantDataDb FROM DISK = 'C:\Backups\TEAM4_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM4.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM4.ldf'
RESTORE DATABASE TEAM05_TenantDataDb FROM DISK = 'C:\Backups\TEAM5_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM5.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM5.ldf'
RESTORE DATABASE TEAM06_TenantDataDb FROM DISK = 'C:\Backups\TEAM6_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM6.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM6.ldf'
RESTORE DATABASE TEAM07_TenantDataDb FROM DISK = 'C:\Backups\TEAM7_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM7.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM7.ldf'
RESTORE DATABASE TEAM08_TenantDataDb FROM DISK = 'C:\Backups\TEAM8_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM8.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM8.ldf'
RESTORE DATABASE TEAM09_TenantDataDb FROM DISK = 'C:\Backups\TEAM9_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM9.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM9.ldf'
RESTORE DATABASE TEAM01_TenantDataDb FROM DISK = 'C:\Backups\TEAM1_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM01.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM1.ldf'
RESTORE DATABASE TEAM02_TenantDataDb FROM DISK = 'C:\Backups\TEAM2_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM02.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM2.ldf'
RESTORE DATABASE TEAM03_TenantDataDb FROM DISK = 'C:\Backups\TEAM3_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM03.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM3.ldf'
RESTORE DATABASE TEAM04_TenantDataDb FROM DISK = 'C:\Backups\TEAM4_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM04.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM4.ldf'
RESTORE DATABASE TEAM05_TenantDataDb FROM DISK = 'C:\Backups\TEAM5_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM05.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM5.ldf'
RESTORE DATABASE TEAM06_TenantDataDb FROM DISK = 'C:\Backups\TEAM6_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM06.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM6.ldf'
RESTORE DATABASE TEAM07_TenantDataDb FROM DISK = 'C:\Backups\TEAM7_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM07.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM7.ldf'
RESTORE DATABASE TEAM08_TenantDataDb FROM DISK = 'C:\Backups\TEAM8_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM08.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM8.ldf'
RESTORE DATABASE TEAM09_TenantDataDb FROM DISK = 'C:\Backups\TEAM9_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM09.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM9.ldf'
RESTORE DATABASE TEAM10_TenantDataDb FROM DISK = 'C:\Backups\TEAM10_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM10.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM10.ldf'
RESTORE DATABASE TEAM11_TenantDataDb FROM DISK = 'C:\Backups\TEAM11_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM11.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM11.ldf'
RESTORE DATABASE TEAM12_TenantDataDb FROM DISK = 'C:\Backups\TEAM12_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM12.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM12.ldf'
Expand All @@ -23,15 +23,15 @@ RESTORE DATABASE TEAM18_TenantDataDb FROM DISK = 'C:\Backups\TEAM18_TenantDataDb
RESTORE DATABASE TEAM19_TenantDataDb FROM DISK = 'C:\Backups\TEAM19_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM19.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM19.ldf'
RESTORE DATABASE TEAM20_TenantDataDb FROM DISK = 'C:\Backups\TEAM20_TenantDataDb.bak' WITH MOVE 'TenantDataDb_Data' TO 'C:\Data\TenantDataDb_TEAM20.mdf', MOVE 'TenantDataDb_Log' TO 'C:\Data\TenantDataDb_TEAM20.ldf'

RESTORE DATABASE TEAM01_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM1_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM1.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM1.ldf'
RESTORE DATABASE TEAM02_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM2_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM2.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM2.ldf'
RESTORE DATABASE TEAM03_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM3_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM3.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM3.ldf'
RESTORE DATABASE TEAM04_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM4_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM4.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM4.ldf'
RESTORE DATABASE TEAM05_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM5_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM5.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM5.ldf'
RESTORE DATABASE TEAM06_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM6_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM6.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM6.ldf'
RESTORE DATABASE TEAM07_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM7_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM7.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM7.ldf'
RESTORE DATABASE TEAM08_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM8_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM8.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM8.ldf'
RESTORE DATABASE TEAM09_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM9_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM9.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM9.ldf'
RESTORE DATABASE TEAM01_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM01_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM1.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM1.ldf'
RESTORE DATABASE TEAM02_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM02_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM2.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM2.ldf'
RESTORE DATABASE TEAM03_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM03_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM3.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM3.ldf'
RESTORE DATABASE TEAM04_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM04_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM4.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM4.ldf'
RESTORE DATABASE TEAM05_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM05_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM5.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM5.ldf'
RESTORE DATABASE TEAM06_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM06_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM6.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM6.ldf'
RESTORE DATABASE TEAM07_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM07_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM7.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM7.ldf'
RESTORE DATABASE TEAM08_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM08_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM8.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM8.ldf'
RESTORE DATABASE TEAM09_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM09_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM9.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM9.ldf'
RESTORE DATABASE TEAM10_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM10_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM10.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM10.ldf'
RESTORE DATABASE TEAM11_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM11_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM11.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM11.ldf'
RESTORE DATABASE TEAM12_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM12_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM12.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM12.ldf'
Expand All @@ -44,15 +44,15 @@ RESTORE DATABASE TEAM18_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM18_Shared
RESTORE DATABASE TEAM19_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM19_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM19.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM19.ldf'
RESTORE DATABASE TEAM20_SharedMasterDataDB FROM DISK = 'C:\Backups\TEAM20_SharedMasterDataDB.bak' WITH MOVE 'SharedMasterDataDB_Data' TO 'C:\Data\SharedMasterDataDB_TEAM20.mdf', MOVE 'SharedMasterDataDB_Log' TO 'C:\Data\SharedMasterDataDB_TEAM20.ldf'

RESTORE DATABASE TEAM01_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM1_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM1.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM1.ldf'
RESTORE DATABASE TEAM02_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM2_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM2.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM2.ldf'
RESTORE DATABASE TEAM03_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM3_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM3.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM3.ldf'
RESTORE DATABASE TEAM04_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM4_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM4.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM4.ldf'
RESTORE DATABASE TEAM05_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM5_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM5.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM5.ldf'
RESTORE DATABASE TEAM06_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM6_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM6.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM6.ldf'
RESTORE DATABASE TEAM07_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM7_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM7.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM7.ldf'
RESTORE DATABASE TEAM08_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM8_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM8.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM8.ldf'
RESTORE DATABASE TEAM09_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM9_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM9.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM9.ldf'
RESTORE DATABASE TEAM01_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM01_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM1.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM1.ldf'
RESTORE DATABASE TEAM02_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM02_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM2.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM2.ldf'
RESTORE DATABASE TEAM03_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM03_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM3.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM3.ldf'
RESTORE DATABASE TEAM04_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM04_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM4.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM4.ldf'
RESTORE DATABASE TEAM05_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM05_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM5.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM5.ldf'
RESTORE DATABASE TEAM06_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM06_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM6.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM6.ldf'
RESTORE DATABASE TEAM07_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM07_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM7.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM7.ldf'
RESTORE DATABASE TEAM08_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM08_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM8.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM8.ldf'
RESTORE DATABASE TEAM09_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM09_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM9.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM9.ldf'
RESTORE DATABASE TEAM10_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM10_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM10.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM10.ldf'
RESTORE DATABASE TEAM11_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM11_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM11.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM11.ldf'
RESTORE DATABASE TEAM12_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM12_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM12.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM12.ldf'
Expand All @@ -64,6 +64,3 @@ RESTORE DATABASE TEAM17_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM17_LocalMa
RESTORE DATABASE TEAM18_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM18_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM18.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM18.ldf'
RESTORE DATABASE TEAM19_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM19_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM19.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM19.ldf'
RESTORE DATABASE TEAM20_LocalMasterDataDB FROM DISK = 'C:\Backups\TEAM20_LocalMasterDataDB.bak' WITH MOVE 'LocalMasterDataDB_Data' TO 'C:\Data\LocalMasterDataDB_TEAM20.mdf', MOVE 'LocalMasterDataDB_Log' TO 'C:\Data\LocalMasterDataDB_TEAM20.ldf'



0 comments on commit 2122c52

Please sign in to comment.