Skip to content

Instantly share code, notes, and snippets.

@gokulraja
Created September 29, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gokulraja/3804156 to your computer and use it in GitHub Desktop.
Save gokulraja/3804156 to your computer and use it in GitHub Desktop.
Deploy all sql files in a folder using bat file
@echo on
set DbName="DB_name"
set Server="localhost"
for %%i in (*.sql) do sqlcmd -E -S %Server% -d %DbName% -i %%i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment