dbTalk Databases Forums  

Interop.DTS Setting a connection

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


Discuss Interop.DTS Setting a connection in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris Plenter
 
Posts: n/a

Default Interop.DTS Setting a connection - 11-02-2005 , 02:16 AM






I'm using the assembly Interop.DTS in VB.Net for executing DTS-packages
stored local on a database-server. First I set some global variables, no
issues here, but when I want to set a datasource it says that the connection
cannot be found, though the name of the connection is certainly present in
the DTS-package.
Any change that some security-settings can make this difference, and if so,
which security settings?

Part of the code I use:

pkg = New DTS.Package2Class

pkg.GlobalVariables.AddGlobalVariable("name", "value")
pkg.Connections.Item("ConnectionName").DataSource = something


Reply With Quote
  #2  
Old   
David J. Cartwright
 
Posts: n/a

Default Re: Interop.DTS Setting a connection - 11-02-2005 , 11:52 AM






try

connections = pkg.Connections
connections("ConnectionName").DataSource = something

"Chris Plenter" <ChrisPlenter (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm using the assembly Interop.DTS in VB.Net for executing DTS-packages
stored local on a database-server. First I set some global variables, no
issues here, but when I want to set a datasource it says that the
connection
cannot be found, though the name of the connection is certainly present in
the DTS-package.
Any change that some security-settings can make this difference, and if
so,
which security settings?

Part of the code I use:

pkg = New DTS.Package2Class

pkg.GlobalVariables.AddGlobalVariable("name", "value")
pkg.Connections.Item("ConnectionName").DataSource = something




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.