Insights of a Full Stack dev
Thursday, 24 March 2016
Run all SQL files in a directory
Add this .bat file to the directory and run it:
for
%%
G
in
(*.
sql
)
do sqlcmd
/
S servername
/
d databaseName
-
E
-
i
"%%G"
pause
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment