I was able to accomplish this using the following.
- The user will set which databases to deploy to in a specific instance.
Foreach
database it will generate a set of SQLCMD commandsforeach
script to deploy and place this in a batch file.
For Example: SQLCMD_Commands_DB1.bat
and SQLCMD_Commands_DB2.bat
Foreach
batch file created with will then generate a new master batch file with the START commands.START "" "SQLCMD_Commands_DB1.bat" START "" "SQLCMD_Commands_DB2.bat"
Execute the Master batch file which will deploy the database scripts in Parallel. I written this and it works as expected.