dbTalk Databases Forums  

How to ... dynamic 'delta-upload' ?

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


Discuss How to ... dynamic 'delta-upload' ? in the microsoft.public.sqlserver.dts forum.



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

Default How to ... dynamic 'delta-upload' ? - 04-23-2004 , 04:41 AM






Hi there

i want to implement a dynamic delta-upload
Source is Oracle, Target SQL2000; I want to extract data from Oracle only for a couples of days - perhaps the last 3 days and not a full upload of the whole table. The starting date and the ending date of this range are stored in a table in the SQL-Server.

I wrote a select to get the data from Oracle like "SELECT * FROM 'table' WHERE DATE1 BETWEEN ? AND ?". Then I declared two global variables and mapped theses variables to the parameters

Now I want to set the global variables from another select which is using the connection to the SQL-Server. So, how? Or is there any other way? (I guess... ;-)
Thanks for any hint
regard
Robert

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

Default Re: How to ... dynamic 'delta-upload' ? - 04-23-2004 , 04:53 AM






You can do the assignments to the vairables in an ExecuteSQL task.

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org


"rholling" <robert.holling (AT) b-i-con (DOT) de> wrote

Quote:
Hi there,

i want to implement a dynamic delta-upload.
Source is Oracle, Target SQL2000; I want to extract data from Oracle only
for a couples of days - perhaps the last 3 days and not a full upload of the
whole table. The starting date and the ending date of this range are stored
in a table in the SQL-Server.
Quote:
I wrote a select to get the data from Oracle like "SELECT * FROM 'table'
WHERE DATE1 BETWEEN ? AND ?". Then I declared two global variables and
mapped theses variables to the parameters.
Quote:
Now I want to set the global variables from another select which is using
the connection to the SQL-Server. So, how? Or is there any other way? (I
guess... ;-))
Quote:
Thanks for any hint,
regards
Robert



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.