Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # This script pushes the database on to the dbserver in the script
  2. # using the $fileName in arg, and names new database from $dbname in args
  3. param($dbname, $fileName)
  4. $dbserver = 'server.name.domain'
  5. $username = 'username'
  6. $password = 'password'
  7. & sqlpackage /a:import /tsn:"$dbserver" /tdn:"$dbname" /tu:"$username" /tp:"$password" /sf:"$fileName"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement