dbTalk Databases Forums  

Transfering only updated data (from as400 to SQL2000)

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


Discuss Transfering only updated data (from as400 to SQL2000) in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
rifat@msakademik
 
Posts: n/a

Default Transfering only updated data (from as400 to SQL2000) - 08-16-2005 , 01:01 AM






Hello,
I use DTS to transfer some tables approximately around 20million rows from
as400 to SQL.

Once I transfer 20million rows, the next time I only need to transfer
updated data in AS400 not all the rows again.

DTS wizard only has drop table in SQL then copy the same table from as400 to
SQL again option.Or thats all I know.

I would be thankful for any help.

regards.

Rifat
Microsoft Turkey
Academic



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

Default Re: Transfering only updated data (from as400 to SQL2000) - 08-16-2005 , 01:13 AM






You are going to need to handle this yourself as there is no option as you
have noticed to say "New Data Only"

So how can you do that?

1. Have a table in the AS400 side that logs a row everytime something is
changed on the AS400. You then use this at ETL time to decide which rows to
bring across

2. Create a linked server of the AS400. You can then query it something
like another other SQL Server and this will make it easier to decide what
rows to bring across.

3. Have a flag on the AS400 tables to say something like "IsDirty". This
will identify rows that require moving at ETL time. At the end of the ETL
process you simply set them back to not being dirty.


There are more ways to do this as well but some of them involve lookups and
on a 20 million row table this will hurt you



"rifat@msakademik" <rifat@msakademikDOTNET> wrote

Quote:
Hello,
I use DTS to transfer some tables approximately around 20million rows from
as400 to SQL.

Once I transfer 20million rows, the next time I only need to transfer
updated data in AS400 not all the rows again.

DTS wizard only has drop table in SQL then copy the same table from as400
to SQL again option.Or thats all I know.

I would be thankful for any help.

regards.

Rifat
Microsoft Turkey
Academic




Reply With Quote
  #3  
Old   
John
 
Posts: n/a

Default Re: Transfering only updated data (from as400 to SQL2000) - 08-20-2005 , 04:35 PM



Rifat,
If you cannot change the structure of your tables on the AS400 side, the
best thing to do would be to create the linked server and query for new
fields using a "not exists" clause to get new data, and a join to get
changed data.

Beware though, accessing AS400 from DTS using Client Access drivers/OLE/ODBC
can result in poor performance. If you have the capability to do so at the
application layer, I'd reccomend using IBM's .NET data provider for AS400
DB2. It provides excellent performace.
John Glass


"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
You are going to need to handle this yourself as there is no option as you
have noticed to say "New Data Only"

So how can you do that?

1. Have a table in the AS400 side that logs a row everytime something is
changed on the AS400. You then use this at ETL time to decide which rows
to
bring across

2. Create a linked server of the AS400. You can then query it something
like another other SQL Server and this will make it easier to decide what
rows to bring across.

3. Have a flag on the AS400 tables to say something like "IsDirty". This
will identify rows that require moving at ETL time. At the end of the ETL
process you simply set them back to not being dirty.


There are more ways to do this as well but some of them involve lookups
and
on a 20 million row table this will hurt you



"rifat@msakademik" <rifat@msakademikDOTNET> wrote in message
news:%23EqH8fioFHA.2080 (AT) TK2MSFTNGP14 (DOT) phx.gbl...
Hello,
I use DTS to transfer some tables approximately around 20million rows
from
as400 to SQL.

Once I transfer 20million rows, the next time I only need to transfer
updated data in AS400 not all the rows again.

DTS wizard only has drop table in SQL then copy the same table from
as400
to SQL again option.Or thats all I know.

I would be thankful for any help.

regards.

Rifat
Microsoft Turkey
Academic






Reply With Quote
  #4  
Old   
db2team@hotmail.com
 
Posts: n/a

Default Re: Transfering only updated data (from as400 to SQL2000) - 08-21-2005 , 02:47 AM



Have a look at StarQuest Data Replicator (previously sold by
Microsoft!), it replicates new data only from DB2 to SQL Server.

http://www.starquest.com/Productfolder/infoSQDR.html

Good luck,

Bob


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.