dbTalk Databases Forums  

Migrate Active X ADO script to SSIS

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


Discuss Migrate Active X ADO script to SSIS in the microsoft.public.sqlserver.dts forum.



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

Default Migrate Active X ADO script to SSIS - 08-01-2006 , 12:59 PM






Hi All,

In SQL Server 2000 DTS, I had an Active X script that, using ADO,
performed the following basic operation:

Retrieve a list of account numbers through Recordset1
While Not Recordset1.eof
Build a sql statement based on fields from current row of
Recordset1
Open Recordset2 based on the sql statement built
Run an update query based on results from recordset 2
Loop

I want to bring this over to SSIS, but i'd like to take advantage of
the most current "ways of doing things" instead of just using SSIS's
activex script.

Does anyone have any recommendations on the best way to handle this
type of thing in SSIS? A script task? A script component? I've never
really worked w/ ADO.net so if it involves that I'd have to pick up
some pointers... any suggestions?

Thanks in advance
Jeff


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

Default Re: Migrate Active X ADO script to SSIS - 08-02-2006 , 04:56 AM






Read the resultset into a Recordset Destination

You can then loop over that.

(You could also do this using an ExecuteSQL task)

We do something similar here

Shredding a Recordset
(http://www.sqlis.com/default.aspx?59)

You would build the SQLStatementSource in a Property Expression.

--


Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com



"Jeff" <jpasqua (AT) gmail (DOT) com> wrote

Quote:
Hi All,

In SQL Server 2000 DTS, I had an Active X script that, using ADO,
performed the following basic operation:

Retrieve a list of account numbers through Recordset1
While Not Recordset1.eof
Build a sql statement based on fields from current row of
Recordset1
Open Recordset2 based on the sql statement built
Run an update query based on results from recordset 2
Loop

I want to bring this over to SSIS, but i'd like to take advantage of
the most current "ways of doing things" instead of just using SSIS's
activex script.

Does anyone have any recommendations on the best way to handle this
type of thing in SSIS? A script task? A script component? I've never
really worked w/ ADO.net so if it involves that I'd have to pick up
some pointers... any suggestions?

Thanks in advance
Jeff




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.