dbTalk Databases Forums  

SSIS - one xml configuration file for multiple packages

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS - one xml configuration file for multiple packages in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
xyz_jat
 
Posts: n/a

Default SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:44 PM






Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #2  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM






FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #3  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM



FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #4  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM



FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #5  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM



FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #6  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM



FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #7  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM



FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #8  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM



FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #9  
Old   
xyz_jat
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-19-2008 , 03:46 PM



FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Quote:
Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
  #10  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS - one xml configuration file for multiple packages - 11-20-2008 , 08:09 AM



I messed around with storing ALL my connection info in one place like a
config file, but it cause issues:

Suppose Package 1 uses all 3 Connection Strings saved in the XML file. You
then create Package 2, which only needs 2 of those 3. You can hook it up to
the config file, but when it runs, the config file will want to try and
modify that 3rd Connection, which it can't find, causing an error.

I have worked with a combination of XML and SQL Server Configurations in
SSIS for a couple of years and have posted my methodology on a blog:

http://toddchitt.wordpress.com/2008/06/27/ssis_config

You are more than welcome to adapt it.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"xyz_jat" wrote:

Quote:
FYI...I'm using SQL Server 2005 and BIDS 2005.

Thanks

"xyz_jat" wrote:

Hi,

Can we use one xml config file for multiple packages? If yes, how can we
store the different connection strings (like I have different database
connections, flat file connections, FTP connections for each package) in one
config file and how to idenetify that which connection string will be used by
which package?

Also, If I created one xml config file with connection strings for one
package then how and where can I specify that the other package can use the
same file and how to add 2nd package connection strings?

I have googled it but couldn't find any example with using one config file
for multiple packages. Though using some online help I tried to use env
variable along with XML file for 2 packages but I couldn't make any of the
package work.

Any help is appreciated.

Thanks

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.