dbTalk Databases Forums  

DTS 2000 ActiveX, retrieve SQL server column names

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


Discuss DTS 2000 ActiveX, retrieve SQL server column names in the microsoft.public.sqlserver.dts forum.



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

Default DTS 2000 ActiveX, retrieve SQL server column names - 07-10-2006 , 04:28 AM






HI, I created a package that contains an ActiveX task and I would like
to get SQL server source column names in order to build datapump source
and destination column collections. Can I use an Execute SQL Task with
this query:


SELECT COLUMN_NAME FROM information_schema.columns WHERE table_name = ?

The parameter would come from a global variable. Now, how can I
reference the columns retrieved with the above query into my subsequent
ActiveX Script task? Worst case, I could use ADO to execute the same
query into the activeX script. If so, how can I connect an ADO
recordset using package connections?

Thank you,
Ccote


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.