Skip to content

Instantly share code, notes, and snippets.

@bvanskiver
Last active August 29, 2015 14:13
Show Gist options
  • Save bvanskiver/88c8503e544845fa996f to your computer and use it in GitHub Desktop.
Save bvanskiver/88c8503e544845fa996f to your computer and use it in GitHub Desktop.
Run all SQL scripts in folder
for /R "C:\Database\Stored Procedures" %i in (*.sql) do sqlcmd -S -T . -d DatabaseName -i "%~fi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment