Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement