Created
March 27, 2020 16:06
-
-
Save Stuart-Moore/050534e08280414e6e701a08ff13fbf4 to your computer and use it in GitHub Desktop.
This file contains 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
ForEach ($file in (Get-ChildItem "$PSScriptRoot\scenarios" -File -Filter "*.sql" -recurse)){ | |
(& sqlcmd -S "$sqlInstance" -U "sa" -P "Password1!$£$" -b -i "$($file.fullname)" -d "master") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment