Last active
July 21, 2017 21:58
-
-
Save Luis-Palacios/8757afabe7f05955360a1503f00a713a to your computer and use it in GitHub Desktop.
For the Restore multiple database post
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$databaseDirectory = "C:\dbbackups\" | |
Restore-DbaDatabase -SqlInstance localhost -Path ("{0}{1}" -f $databaseDirectory, "database1.bak") | |
Restore-DbaDatabase -SqlInstance localhost -Path ("{0}{1}" -f $databaseDirectory, "database2.bak") | |
Restore-DbaDatabase -SqlInstance localhost -Path ("{0}{1}" -f $databaseDirectory, "database3.bak") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment