I needed a task, which gets all defined connections of a SSiS module, iterates over these and constructs valid connection strings for these, which could be used to connect via .Net SQLClient class to the defined database. To control which one of the managers we want to use, we define a variable named "varConnectionManagerName". There are several possibilities which one of the defined connections will be written into the output variables named as "varConnectionString_<Name 1...n>", which must be also defined as variables. Expression <Name_1> is the term we wrote into the variable varConnectionManagerName for defining the 'right' connection! Cases 1. varConnectionManagerName doesn't exist We build the string from the first found connection and write out the string into the variabe varConnectionString 2. varConnectionManagerName exists and contains one connection name We build the string from the connection defined and write out the string into the variabe "varConnectionString" 3. varConnectionManagerName exists and contains more than one connection names (separated by a coma) We build the strings from the connections defined and write out the strings into the variabes varConnectionString_<Name 1>, varConnectionString_<Name 2>, ... If there is no SSPI (System accout login), the variable "Password" must be defined with the valid password for the server login. Becarefll with that, becuase it is stored in cleartext form. But as far as I know, there is no other possibility, brecause the password is not stored in the connection and the DTSX file, depending on the seurity level! Here is the code for this script task