Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

How to change the connection string of child packages in Execute Package task? Expand / Collapse
Author
Message
Posted Thursday, July 11, 2013 4:42 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 20, 2014 6:58 AM
Points: 138, Visits: 195
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...
Post #1472504
Posted Thursday, July 11, 2013 5:42 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1472516
Posted Thursday, July 11, 2013 6:25 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 20, 2014 6:58 AM
Points: 138, Visits: 195
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?
Post #1472542
Posted Thursday, July 11, 2013 7:02 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1472556
Posted Thursday, July 11, 2013 8:08 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 20, 2014 6:58 AM
Points: 138, Visits: 195
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.
Post #1472594
Posted Thursday, July 11, 2013 8:56 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 9:59 AM
Points: 5,227, Visits: 9,437
One configuration option is to use a parent package variable in each of the packages that is called from your master package.

John
Post #1472628
Posted Thursday, July 11, 2013 2:44 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1472782
Posted Friday, July 12, 2013 5:21 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 20, 2014 6:58 AM
Points: 138, Visits: 195
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 ...
Post #1472945
Posted Friday, July 12, 2013 5:23 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 20, 2014 6:58 AM
Points: 138, Visits: 195
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?
Post #1472946
Posted Friday, July 12, 2013 5:25 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: 2 days ago @ 11:20 PM
Points: 13,252, Visits: 10,133
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1472947
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse