dbTalk Databases Forums  

"Advanced" VB-Script in DTS (Recordset)

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


Discuss "Advanced" VB-Script in DTS (Recordset) in the microsoft.public.sqlserver.dts forum.



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

Default "Advanced" VB-Script in DTS (Recordset) - 11-19-2003 , 08:39 AM






Hi there!

My DTS task is to import several files and compare the data within a loop.

I found this very good example 246 on sqldts.com (thanks guys!) but there is
one problem I still have to solve.

I don't want to store the differences between the original and the new data
in a table but in a recordset in the memory (performance reasons).

How can I create a "temporary" recordset in VB-Scipt? Is there a way to do
that?

Thanx for your help.

PMP



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

Default Re: "Advanced" VB-Script in DTS (Recordset) - 11-21-2003 , 03:57 PM






In article <#ZELgrqrDHA.732 (AT) TK2MSFTNGP09 (DOT) phx.gbl>, Manu Pfitsche
<brundle (AT) freesurf (DOT) ch> writes
Quote:
Hi there!

My DTS task is to import several files and compare the data within a loop.

I found this very good example 246 on sqldts.com (thanks guys!) but there is
one problem I still have to solve.

I don't want to store the differences between the original and the new data
in a table but in a recordset in the memory (performance reasons).

How can I create a "temporary" recordset in VB-Scipt? Is there a way to do
that?

Thanx for your help.

PMP


I would use an Execute SQL Task to get the recordset, which can then be
stored in a global variable. The Execute SQL Task supports output
Parameters. Just click the parameters button. An example that uses this-

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)
--
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.