dbTalk Databases Forums  

DTS - Per Row update of source data during import

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


Discuss DTS - Per Row update of source data during import in the microsoft.public.sqlserver.dts forum.



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

Default DTS - Per Row update of source data during import - 10-25-2004 , 09:35 AM






I'm uploading data from staging tables on an as400 to staging tables on
MSSQL. I want to set a status field in the source record to show whether the
upload was successful or not.

I think the multiphase data pump is the way to go, but I don't want to keep
opening connections to the as400 with each record. Is there a way to use one
connection for the whole tramsformation task ?

Any advice greatfully received.

Thanks.


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

Default Re: DTS - Per Row update of source data during import - 10-25-2004 , 01:07 PM






But then are you not asking to do Row * Row processing? On large datasets
this will be a killer.

Alternatives are

Issue an update against the AS400 (ExecuteSQL task) after the DataPump task
that updates the same rows that your datapump chose

Use a linked server to do the updates matching on key values.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Duncan Allen" <DuncanAllen (AT) discussions (DOT) microsoft.com> wrote

Quote:
I'm uploading data from staging tables on an as400 to staging tables on
MSSQL. I want to set a status field in the source record to show whether
the
upload was successful or not.

I think the multiphase data pump is the way to go, but I don't want to
keep
opening connections to the as400 with each record. Is there a way to use
one
connection for the whole tramsformation task ?

Any advice greatfully received.

Thanks.




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.