Created
August 14, 2017 19:23
-
-
Save jhauge/811d92149e4422ea07e67dde80091c1b to your computer and use it in GitHub Desktop.
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
# This script pushes the database on to the dbserver in the script | |
# using the $fileName in arg, and names new database from $dbname in args | |
param($dbname, $fileName) | |
$dbserver = 'server.name.domain' | |
$username = 'username' | |
$password = 'password' | |
& sqlpackage /a:import /tsn:"$dbserver" /tdn:"$dbname" /tu:"$username" /tp:"$password" /sf:"$fileName" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment