Question : Get SSIS Connection Manager Properties

Hello,
I'm looking for a way to get an SSIS's connection Manager properies through a VB.net code.  
For example, we have an SSIS package with 5 different connections.  I'd like to pull the connection properties through vb.

Any input is greatly appreciated.
Thank you,
JG

Answer : Get SSIS Connection Manager Properties

Hi JG,

For SQL Server 2005, change  IDTSPackage100 to  IDTSPackage90.
1:
2:
3:
4:
5:
Dim app As Microsoft.SqlServer.Dts.Runtime.Wrapper.Application = New Application() 
Dim p As IDTSPackage90 = app.LoadPackage("c:\Package.dtsx", True, Nothing) 
For Each cn As IDTSConnectionManager90 In p.Connections
     Console.WriteLine(cn.ConnectionString)
Next
Random Solutions  
 
programming4us programming4us