Hi,
I have a master package, which executes a few child packages in parallel. All packages are SQL Server 2008 R2 and have two configurations: Indirect XML configuration file and SQL Server. The name of the XML file is Master_Config.xml
Then I have 3 customer DW databases.
So, I created 3 XML files each pointing to appropriate DW. XML file names are MC1.xml, MC2.xml, and MC3.xml
In order to run the master package against 3 customer databases I execute following batch file:
copy MC1.xml Master_Config.xml
DTExec.exe /F MASTER.dtsx /Reporting "N"
copy MC2.xml Master_Config.xml
DTExec.exe /F MASTER.dtsx /Reporting "N"
copy MC3.xml Master_Config.xml
DTExec.exe /F MASTER.dtsx /Reporting "N"
The problem is that processing of, say, DW #2 starts before the processing of the previous DW finishes. In order words, Master_Config.xml gets replaced with the XML file for the next step before the previous step completely finishes. I suspect that
it has something to do with the parallel execution of child packages.
Any ideas how this can be resolved?
Remember to mark as an answer if this post has helped you.