Hi,
Is it possible to create connection manager objects dynamically at runtime while executing SSIS packages? Please note that, I'm not talking about assigning connection string dynamically to connection mangers, but I need to create the connection manager objects dynamically at the project level. The reason I want to create the connection managers dynamically is that, the number of databases that I need to access depends on my execution instance and an operation table contains the list of all the databases/servers and tells me which task would need which database/server. I might be dealing with say, 3 data connections or 15 data connections depending on my execution instance. I also have a lot of parallel invocation and hence, can not just create one (or a few) connection managers and keep changing their connection strings. The ideal scenario is, I create as many connections as needed in the beginning and my SQL tasks can dynamically pick up whichever connection is relevant for it and the connection manager name can be assigned using a variable/expressions.
I'm using project deployment mode in SQL 2012.