all groups > sql server dts > february 2006 >
You're in the

sql server dts

group:

Changing name of odbc connection manager breaks it


Changing name of odbc connection manager breaks it David Norman
2/21/2006 4:58:27 PM
sql server dts:
I have created a package that contains a script task that uses a connection
manager. The name of the connection manager was specific to the data source
and I want to make my package deployable, so I rightclick-renamed the
connection manager to something more generic and stored the details in a
config file.

However the script task failed to connect using

Dts.Connections("Generically Named Connection
Manager").AcquireConnection(Nothing)

While attempting to debug I tried creating a new connection manager - and lo
and behold, the old connection manager name is listed as "previous connection
information". I selected it and changed the script task to use the old name,
and everything works as before.

However I don't really want to use the old connection manager name as it
would be very confusing in a test/prod environment. What's my workaround for
this? Is there somewhere I can dive in and force the name change?

Thanks in advance,
RE: Changing name of odbc connection manager breaks it David Norman
2/21/2006 11:57:27 PM
It was the old chestnut of password not being saved in package config causing
connection to fail. New connection properties were in config, old connection
properties weren't.

[quoted text, click to view]
AddThis Social Bookmark Button