xyz_jat
2008-12-02 17:34:04 UTC
I'm trying to modify an existing connection for a package which I call from
another package using a script task. The connection string gets modified but
password does not get modified.
Here is the code I'm using -
Dim pkg As Package() = app.LoadPackage(MyPackageFullPath, Nothing)
Dim pkgConns As Connections = pkg.Connections
Dim ConMgr As ConnectionManager
ConMgr = pkg.Connections("Patrol")
ConMgr.ConnectionString = "Data Source=MyServer;User
ID=MyID;Password=MyPassword;Initial
Catalog=MyDatabase;Provider=SQLOLEDB.1;Persist Security Info=True;"
Server, database, User ID information gets modified but password never gets
updated and results in failure.
Any help is appreciated.
Thanks
another package using a script task. The connection string gets modified but
password does not get modified.
Here is the code I'm using -
Dim pkg As Package() = app.LoadPackage(MyPackageFullPath, Nothing)
Dim pkgConns As Connections = pkg.Connections
Dim ConMgr As ConnectionManager
ConMgr = pkg.Connections("Patrol")
ConMgr.ConnectionString = "Data Source=MyServer;User
ID=MyID;Password=MyPassword;Initial
Catalog=MyDatabase;Provider=SQLOLEDB.1;Persist Security Info=True;"
Server, database, User ID information gets modified but password never gets
updated and results in failure.
Any help is appreciated.
Thanks