I created a cmd file that basically executes all sql scripts sequentially. I am using a windows private build agent in VSTS. How do I execute this .cmd file? Is there any other task that executes multiple sql scripts against an Azure SQL database? Any suggestions will help. Below is the contents of cmd file:
@Echo Off FOR /f %%i IN ('DIR *.Sql /B') do call :RunScript %%i GOTO :END
:RunScript Echo Executing Script: %1 sqlcmd -S <> -U <> -P <> -d PFUTest -i %1 -o log.txt Echo Completed Script: %1
:END