dbTalk Databases Forums  

How to obtain "data source" from within ActiveX/VB?

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


Discuss How to obtain "data source" from within ActiveX/VB? in the microsoft.public.sqlserver.dts forum.



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

Default How to obtain "data source" from within ActiveX/VB? - 12-17-2004 , 03:37 PM






I have an activex object in a DTS package which contains hard-coded info that
really should be dynamic. There is an OLE DB Property called "Data Source"
from the UDL file that appears to contain the value I want. Is there a way
to obtain that value? ( I am new to DTs and do not know the right names for
things yet.) The activex control moves files around using hard-coded
machine\path\files names. Data Source appears to be the same as the machine
name above, so if I could query the value of the Data Source the code could
be moved more easily between machines. A little code example, or a link to
such a sample, would be very much appreciated.

Thanks,
Michael

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

Default Re: How to obtain "data source" from within ActiveX/VB? - 12-18-2004 , 04:46 AM






Does this help

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

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Snake" <Snake (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have an activex object in a DTS package which contains hard-coded info
that
really should be dynamic. There is an OLE DB Property called "Data
Source"
from the UDL file that appears to contain the value I want. Is there a
way
to obtain that value? ( I am new to DTs and do not know the right names
for
things yet.) The activex control moves files around using hard-coded
machine\path\files names. Data Source appears to be the same as the
machine
name above, so if I could query the value of the Data Source the code
could
be moved more easily between machines. A little code example, or a link to
such a sample, would be very much appreciated.

Thanks,
Michael



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.