Created
September 29, 2012 14:25
-
-
Save gokulraja/3804156 to your computer and use it in GitHub Desktop.
Deploy all sql files in a folder using bat file
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
@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