dbTalk Databases Forums  

Changing name of odbc connection manager breaks it

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Changing name of odbc connection manager breaks it in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Norman
 
Posts: n/a

Default Changing name of odbc connection manager breaks it - 02-21-2006 , 06:58 PM






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,
David

Reply With Quote
  #2  
Old   
David Norman
 
Posts: n/a

Default RE: Changing name of odbc connection manager breaks it - 02-22-2006 , 01:57 AM






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.

"David Norman" wrote:

Quote:
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,
David

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.