Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Best way to pass in parameter to Master SSIS package

 
   Database Help (Home) -> DTS RSS
Next:  Find Results  
Author Message
hfdev

External


Since: Apr 01, 2008
Posts: 20



(Msg. 1) Posted: Tue Dec 02, 2008 8:40 am
Post subject: Best way to pass in parameter to Master SSIS package
Archived from groups: microsoft>public>sqlserver>dts (more info?)

Hello,

I have created a master SSIS package that is responsible for running
numerous child packages based on configuration data stored in a SQL table. I
use a recordset destination to obtain the list of child packages and then
iterate over it in a foreach loop container, then I use a execute package
task to execute each child package and then update the LastRunDate column in
the SQL table to reflect the last time the child package was run. Also, if
the child package fails, I email my team which which child package failed.

I want to be able to schedule the master package to run on different
schedules and pass in a variable during runtime that tells this master
package which child packages to run. The parameter that I need to pass in is
of type int.

Currently the child packages are broken up into 3 different groups and this
is denoted by a field in the SQL table that is of type int denoted by the
values 1,2,3.

I think it is possible to pass in parameters to a package via a XML
configuration file. Is this the best way to go about this? If so, does this
mean that I need to create 3 different configuration files; one for each
integer value? If not, is there an easlier way to pass in a parameter of
type int to a package that is scheduled to run via SQL Agent job?

Thanks for the insight,

--
Josh Blair (hfdev)
HydraForce, Inc.

 >> Stay informed about: Best way to pass in parameter to Master SSIS package 
Back to top
Login to vote
hfdev

External


Since: Apr 01, 2008
Posts: 20



(Msg. 2) Posted: Thu Feb 19, 2009 10:46 am
Post subject: RE: Best way to pass in parameter to Master SSIS package [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I figured this out. It is the Set Values tab of the Job Step Properties
dialog that is available when you schedule and SSIS package.


Here is an example of the way my parameter is constructed:

\Package.Variables[User::ScheduleTypeID].Properties[Value]

HTH someone else,

--
Josh Blair (hfdev)
HydraForce, Inc.


"hfdev" wrote:

> Hello,
>
> I have created a master SSIS package that is responsible for running
> numerous child packages based on configuration data stored in a SQL table. I
> use a recordset destination to obtain the list of child packages and then
> iterate over it in a foreach loop container, then I use a execute package
> task to execute each child package and then update the LastRunDate column in
> the SQL table to reflect the last time the child package was run. Also, if
> the child package fails, I email my team which which child package failed.
>
> I want to be able to schedule the master package to run on different
> schedules and pass in a variable during runtime that tells this master
> package which child packages to run. The parameter that I need to pass in is
> of type int.
>
> Currently the child packages are broken up into 3 different groups and this
> is denoted by a field in the SQL table that is of type int denoted by the
> values 1,2,3.
>
> I think it is possible to pass in parameters to a package via a XML
> configuration file. Is this the best way to go about this? If so, does this
> mean that I need to create 3 different configuration files; one for each
> integer value? If not, is there an easlier way to pass in a parameter of
> type int to a package that is scheduled to run via SQL Agent job?
>
> Thanks for the insight,
>
> --
> Josh Blair (hfdev)
> HydraForce, Inc.

 >> Stay informed about: Best way to pass in parameter to Master SSIS package 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
migrated DTS to SSIS package, how to run SSIS package from.. - Hi all, I am kind of new in this topic and get stuck for awhile. I migrated DTS packages from SQL Server 2000 (Windows 2000) to be SSIS packages on SQL Server 2005 (Windows 2003 Server) but don't know how to modify ASP code to run SSIS on a local..

SSIS Newbie: Create new text logs when a SSIS package is run - Hi there, I was wondering if you could point me in the right direction on how I could create new csv/ txt files whenever a SSIS package is run? As far as I could understand, the SSIS have the ability to create logs, but I have noticed that it creates..

SSIS package - We have a web app that maintains data in a SQL server database. We need to run a monthly job that processes this data (complex logic) and then outputs the contents of several resulting tables to an FTP server. This FTP data is then sucked into an..

unable to pass string from proc to SSIS variable - HELP!!! - I am trying to pass a value from a stored proc output variable to a user variable in SSIS. When I define the variable as integer in both SSIS and the stored proc, every thing is fine, however, it gives me a data type mismatch error when I declare the....

Schedule My First SSIS Package - Hi. I've created my first SSIS Package and need to schedule it to run hourly on a remote server. Could someone tell me how this scheduling is done, or direct me to a resource describing it? It's my first SSIS Package and I can't seem to figure out..
   Database Help (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]