Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

package config file + all connections to all databases in one xml file

$
0
0

Hi,

Planning to have one .dtsconfig file for all connections to all databases and use it in all packages like this

<DTSConfiguration>
 <Configuration ConfiguredType="Property" Path="\Package.Connections[cn1].Properties[ConnectionString]" ValueType="String">
    <ConfiguredValue>Data Source=localhost;Initial Catalog=dbA;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;</ConfiguredValue>
   </Configuration>
 <Configuration ConfiguredType="Property" Path="\Package.Connections[cn2].Properties[ConnectionString]" ValueType="String">
    <ConfiguredValue>Data Source=localhost;Initial Catalog=dbB;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;</ConfiguredValue>
   </Configuration>
 <Configuration ConfiguredType="Property" Path="\Package.Connections[cn3].Properties[ConnectionString]" ValueType="String">
    <ConfiguredValue>Data Source=localhost;Initial Catalog=dbC;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;</ConfiguredValue>
   </Configuration>
</DTSConfiguration>

Package 1 has only cn1 connection manager.

Package 2 has only cn2 connection manager etc.

When I run package 1, everything works fine but in logs, I see that

Error:

The connection "cn2" is not found. This error is thrown by Connections collection when the specific connection element is not found.

The connection "cn3" is not found. This error is thrown by Connections collection when the specific connection element is not found.

How can I have only one xml config file for all database connections. I was to use this config file by all packages.

Thanks,


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>