dbTalk Databases Forums  

Accessing connections from ActiveX Script Task

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


Discuss Accessing connections from ActiveX Script Task in the microsoft.public.sqlserver.dts forum.



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

Default Accessing connections from ActiveX Script Task - 11-12-2003 , 05:09 AM






Hi there,
how do I get hold of a DTS Connection from within an ActiveX
Script Task. I don't want to have to create another connection and hard
code the logon details.
I'm sure this must be possible, but cannot find anything in the online help.



Reply With Quote
  #2  
Old   
V Batishchev
 
Posts: n/a

Default Re: Accessing connections from ActiveX Script Task - 11-12-2003 , 06:26 AM






If you want to use DTS connection with ADO - it is not possible.

"Waldy" <waldy (AT) 69 (DOT) cock> wrote

Quote:
Hi there,
how do I get hold of a DTS Connection from within an ActiveX
Script Task. I don't want to have to create another connection and hard
code the logon details.
I'm sure this must be possible, but cannot find anything in the online
help.





Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Accessing connections from ActiveX Script Task - 11-12-2003 , 08:45 AM



You can find numerous examples of accessing connections here

Connections
(http://www.sqldts.com/Default.aspx?101)

--

Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"Waldy" <waldy (AT) 69 (DOT) cock> wrote

Quote:
Hi there,
how do I get hold of a DTS Connection from within an ActiveX
Script Task. I don't want to have to create another connection and hard
code the logon details.
I'm sure this must be possible, but cannot find anything in the online
help.





Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: Accessing connections from ActiveX Script Task - 11-12-2003 , 11:52 AM



In article <uEs061QqDHA.3844 (AT) tk2msftngp13 (DOT) phx.gbl>, Waldy
<waldy (AT) 69 (DOT) cock> writes
Quote:
Hi there,
how do I get hold of a DTS Connection from within an ActiveX
Script Task. I don't want to have to create another connection and hard
code the logon details.
I'm sure this must be possible, but cannot find anything in the online help.


In addition to the other posts.

You can build an ADO connection string by reading the properties off the
DTS connection, all apart from the Password for SQL security.

You may be better off using the Execute SQL Task, or even the DataPump
task. The DataPump task doesn't have to transfer data, you can just use
it to read data, and then combine that with a lookup for example and
work with the input all in the transform ActiveX script.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.