Created
September 11, 2012 10:21
-
-
Save antonydenyer/3697427 to your computer and use it in GitHub Desktop.
Run All Sql in a directory
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" | |
for %%i in (*.sql) do sqlcmd -E -S localhost -d %DbName% -i %%i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment