Skip to content

Instantly share code, notes, and snippets.

@Luis-Palacios
Last active July 21, 2017 21:58
Show Gist options
  • Save Luis-Palacios/8757afabe7f05955360a1503f00a713a to your computer and use it in GitHub Desktop.
Save Luis-Palacios/8757afabe7f05955360a1503f00a713a to your computer and use it in GitHub Desktop.
For the Restore multiple database post
$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