Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 AS400 ---> SQL Server 2000

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-10-25 : 08:50:52
Jason writes "Have complicated scenario to explain so i will do my best
with it. Here is the situation: Trying to replicate an
as/400 to a SQL Server 2000 box using data mirror 4.6...
Here is my dilema. If my operations group restores the
as/400 to a certain marker, how do you identify the records
on the SQL side that need to be updated/deleted, etc, so a
complete refresh of data is not needed? Currently, we have
a 3 day refresh period due to this issue, and i cant see how
that is acceptable. The main reason for this is because the
large table is a loan history table, but it can be updated,
so it isnt much of a history table so to speak.

I would like to create a stage table that houses 7 days worth
of data, and then delete the pervious 7th day at close of
business to keep the record count down. Data mirror would
handle that subscription. from there, SQL server would push
the new records, updates, deletes, etc, to the final table
which would include all dates, including the data that is in
the stage table. the problem comes in when the as/400 is restored,
and i assume that i can delete the dates that i have in SQL
that the restore DIDNT include, what happens if a new transaction
coming from the as/400 is an update rather than an insert? the
record doesnt exist for that date anymore because i deleted it to
avoid dups. I know data mirror 5.2 will insert the record if it
doesnt exist even on an update, but we are using 4.6...

Has anyone dealt with this before? It has been an issue for years
and there have been many consulting companies they have paid a lot
of money to figure this out, and they have yet to be able to. Am
interested to hear if anyone has dealt with this situation before.

Thanks in advance!
Jason"
   

- Advertisement -