[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3576
  • Last Modified:

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.
0
MISKid08
Asked:
MISKid08
  • 8
  • 6
  • 4
2 Solutions
 
HoggZillaCommented:
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
 
HoggZillaCommented:
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
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
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
 
HoggZillaCommented:
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
 
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
 
HoggZillaCommented:
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

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 8
  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now