dbTalk Databases Forums  

Insert data from an ActiveX script

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


Discuss Insert data from an ActiveX script in the microsoft.public.sqlserver.dts forum.



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

Default Insert data from an ActiveX script - 07-26-2005 , 12:17 PM






I need to insert data returned from an ActiveX vb script into a table. Can
I do this w/o writing the data into a text file (inside the vbs), then
importing the text file into a table? Right now I out it in a file, then
load the file into the table. I'd like to go straight from the vbs script
into the table.

Here is an example of the vbs output data:
Class_CD,0
CWY_CD,0
Dev_CD,10
GHS_CD,10
Master_CD,90
MET_CD,10
Prior_CD,10
PSC_CD,0
STJ_CD,10
UAM_CD,10
Warehouse_CD,95

Here is a select of the table data:

SampleName SampleSize
--------------- -----------
Class_CD 0
CWY_CD 0
Dev_CD 10
GHS_CD 10
Master_CD 90
MET_CD 10
Prior_CD 10
PSC_CD 0
STJ_CD 10
UAM_CD 10
Warehouse_CD 95



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

Default Re: Insert data from an ActiveX script - 07-26-2005 , 02:08 PM






I am not really sure what you are after here. is the "vbs output data"
generated within the Active Script task and "table data" is what it would
look like in the destination?

if the answers to the above are true then you are quite simply looking at
ADO programming in VBScript.


http://msdn.microsoft.com/library/de...df_ax_06er.asp


--



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


"cw" <cwilson (AT) 3mc (DOT) com> wrote

Quote:
I need to insert data returned from an ActiveX vb script into a table. Can
I do this w/o writing the data into a text file (inside the vbs), then
importing the text file into a table? Right now I out it in a file, then
load the file into the table. I'd like to go straight from the vbs script
into the table.

Here is an example of the vbs output data:
Class_CD,0
CWY_CD,0
Dev_CD,10
GHS_CD,10
Master_CD,90
MET_CD,10
Prior_CD,10
PSC_CD,0
STJ_CD,10
UAM_CD,10
Warehouse_CD,95

Here is a select of the table data:

SampleName SampleSize
--------------- -----------
Class_CD 0
CWY_CD 0
Dev_CD 10
GHS_CD 10
Master_CD 90
MET_CD 10
Prior_CD 10
PSC_CD 0
STJ_CD 10
UAM_CD 10
Warehouse_CD 95





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.