Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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