How to create one SSIS package that executes multiple packages that already exist?

I am a newbie with SSIS. I need to create an SSIS package that will, in turn, execute multiple SSIS packages that have already been created. Any help would be awesome.
MISKid08Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve HoggITCommented:
Super easy!
In SSIS you can add a task called "Execute Package Task" where you point to an existing package, either on the File System or SQL Server.
0
Steve HoggITCommented:
Here is my getting started guide for SSIS with some links to other good stuff.
SSIS-Getting-Started.doc
0
MISKid08Author Commented:
Right, I figured out how to do that for one package, but I have about 5 others I need to execute. Do I just add 5 more "Execute Package Task" items or put them in a For Loop Container?
0
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

PedroCGDCommented:
Dear friend,
Depends if you want to execute it in parallel or in sequential.
If you want sequencial also depends if you store your packages in FileSystem or in SQL Server.

FileSystem
Use For each to look for dtsx files and save the path in a ssis variable that execute package task will execute dinamically

SqlServer
insert the names of the packages in a SSIS object using recordset destination and use ForEachLoop to get each name and path to store in a ssis variable to execute the package dinamically.

Helped?
Let me know if I can help you more.
regards!
Pedro
www.pedrocgd.blogspot.com
Base.JPG
Image1.JPG
Image2.JPG
ImageForEach-FileSystem.JPG
ImageForEach-SQLServer.JPG
0
Steve HoggITCommented:
If the number of packages you will run is dynamic, and you are storing the packages in the File System - not SQL Server, then Pedro has a great solution.
If the packages are stored on the SQL Server or it is a fixed number of pacakges, then I would create 5 separate tasks. The loop brings a level of complexity into this that is not required for something static.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MISKid08Author Commented:
As of now, the number of packages to be executed is static, but will be dynamic in the future.

I am now having problems figuring out how to build the expression once I choose the "Connection" property.
0
PedroCGDCommented:
first, tell us... where you will store the packages... in database or in the filesystem?
Regards
0
MISKid08Author Commented:
The majority are stored in the database, and one is on the file system. Does it matter if know where all the .dtsx files are?
0
PedroCGDCommented:
It's manner because the way I'm planning to suggest your is diffetent for both cases.
You need to execute the multiple packages in a sequential or parallel order?
Regards!
Pedro
0
MISKid08Author Commented:
There is no set order just as long as all of them are executed.
0
MISKid08Author Commented:
Also, we just decided to recreate all the packages and save them on the file system. Once it's delivered it will be easier to edit the packages if needed.
0
MISKid08Author Commented:
Now that all packages are on the file system I just need help creating the Connection Expression within the Execute Package Task. All the examples I've tried to follow use 2005 and ConnectionString, which is different in 2008.
0
PedroCGDCommented:
Ok... do you want the example in SQL 2008?
regards!
0
Steve HoggITCommented:
When you double click the Execute Package Task, go to the Expressions window, 3rd option on the left of the dialog. Click in the Expressions box and open the next dialog. Picture attached. Select the Connection value and go build your expression.
Do you need help building the expression?

execute-process-task-expressions.bmp
0
MISKid08Author Commented:
Yes, I don't know how to actually build the expression. I am using BIDS 08.
0
PedroCGDCommented:
OK... I will do it in a minute...
0
PedroCGDCommented:
Dear friend,
Check the package I made for you in SQL 2008.
Create a new SSIS Project, and add the Master package to it.
Unzip and rename the 6 ssis packages to dtsx.
Update the SSIS variables and the folder in ForEach Loop.
Test!
Helped?
regards!
Pedro
SSISPackagesToExecute-zip.txt
MasterPackage-dtsx.txt
0
MISKid08Author Commented:
I'm confused. You told me to create a Connection Expression earlier but didn't in your example. I also don't know how to setup variables like you did in the Master Package.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.