Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to change the connection string of child packages in Execute Package task?


How to change the connection string of child packages in Execute Package task?

Author
Message
prakashr.r7
prakashr.r7
SSC-Enthusiastic
SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)

Group: General Forum Members
Points: 140 Visits: 197
Hi Friends,

I am tryting to execute multiple packages so i am using Execute Package Task to run the packages in certain order. But my problem is that these packages have to execute in different environment so i have to change the connection strings for all the packages. Since i am using one master package to execute, i could not find a way to change the connection strings in DTEXECUI..... How to use this master package to run in different environment?

Could you help me friends? Any suggestions would be appreciated...
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16522 Visits: 13210
Did you take a look at package configurations?



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
prakashr.r7
prakashr.r7
SSC-Enthusiastic
SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)

Group: General Forum Members
Points: 140 Visits: 197
Koen Verbeeck (7/11/2013)
Did you take a look at package configurations?


Koen, configuring for each packages? If yes, do we have to use that in master package execution...? Just curious, will that work?
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16522 Visits: 13210
Normally I create package configurations for each package.
Is there something special about your set-up that prevents this?



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
prakashr.r7
prakashr.r7
SSC-Enthusiastic
SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)

Group: General Forum Members
Points: 140 Visits: 197
Koen Verbeeck (7/11/2013)
Normally I create package configurations for each package.
Is there something special about your set-up that prevents this?


Sorry Koen, nothing special... so we have to add all the package configurations and run with the master package ...? I was thinking that how the master EXECUI would accept these config files..? That's why i came here for clarification.
John Mitchell-245523
John Mitchell-245523
SSCertifiable
SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)SSCertifiable (7.5K reputation)

Group: General Forum Members
Points: 7502 Visits: 15159
One configuration option is to use a parent package variable in each of the packages that is called from your master package.

John
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16522 Visits: 13210
prakashr.r7 (7/11/2013)
Koen Verbeeck (7/11/2013)
Normally I create package configurations for each package.
Is there something special about your set-up that prevents this?


Sorry Koen, nothing special... so we have to add all the package configurations and run with the master package ...? I was thinking that how the master EXECUI would accept these config files..? That's why i came here for clarification.


DTEXECUI is the graphical version of DTEXEc, you cannot use this in a package. You can call however DTEXEC to execute a specific package and specify a configuration file as a parameter. Maybe that is the direction that you want to pursue?



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
prakashr.r7
prakashr.r7
SSC-Enthusiastic
SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)

Group: General Forum Members
Points: 140 Visits: 197
Koen Verbeeck (7/11/2013)
prakashr.r7 (7/11/2013)
Koen Verbeeck (7/11/2013)
Normally I create package configurations for each package.
Is there something special about your set-up that prevents this?


Sorry Koen, nothing special... so we have to add all the package configurations and run with the master package ...? I was thinking that how the master EXECUI would accept these config files..? That's why i came here for clarification.


DTEXECUI is the graphical version of DTEXEc, you cannot use this in a package. You can call however DTEXEC to execute a specific package and specify a configuration file as a parameter. Maybe that is the direction that you want to pursue?


Okay, But i am not clear with config files.... What i understand from you is to create config file for each child package and use that while executing the master package...Is that correct? What i am wondering is do we have to use all the config files? do we have any option to use just one config file to execute all the child packages through master package?

Koen, if this is a simple task , I am sorry for asking questions repeatedly ...
prakashr.r7
prakashr.r7
SSC-Enthusiastic
SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)SSC-Enthusiastic (140 reputation)

Group: General Forum Members
Points: 140 Visits: 197
John Mitchell-245523 (7/11/2013)
One configuration option is to use a parent package variable in each of the packages that is called from your master package.

John


Sorry John, I am not getting you...Could you please make me clear?
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16522 Visits: 13210
You can create only one config file that stores for example the servername and the database. And you can pass this config file along when calling the child packages with DTEXEC.

In this case you'll have to make a config file for each environment.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search