If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Data Integrity

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-16-02, 09:42
Orion Orion is offline
Registered User
 
Join Date: Jul 2002
Location: South Africa
Posts: 2
Data Integrity

hi

I have a situation where a database is constantly updated with new records - no records are deleted, only added. I may not modify the database. The added records need to be copied to another system. how can I keep track of which records have been copied to the other system, as I may not duplicate the records on the other system and may not query that system.

What is the best possible way to do this? can I keep a duplicate of say the primary keys in a second database and write a query to compare the first with the second and extract only the non-duplicated keys? What happens when the database becomes MASSIVE?

thanks!
Reply With Quote
  #2 (permalink)  
Old 07-16-02, 10:21
r937 r937 is online now
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
can I keep a duplicate of say the primary keys in a second database and write a query to compare the first with the second and extract only the non-duplicated keys?
since you cannot update the first system, and you cannot even query the second, then yes, you will need some kind of extra table

(what kind of weird setup is it where they want you to do INSERTs into a database but not be able to do a SELECT on it?)

as to what happens when the database becomes "massive" -- i'll tell you what happens, they'll come back to you and say "help, our database is massive, we need you to clean it up" and then they'll have to give you DELETE permissions...

rudy
http://rudy.ca/
Reply With Quote
  #3 (permalink)  
Old 07-17-02, 03:11
Orion Orion is offline
Registered User
 
Join Date: Jul 2002
Location: South Africa
Posts: 2
Quote:
(what kind of weird setup is it where they want you to do INSERTs into a database but not be able to do a SELECT on it?)
Well the weird setup would be something like SAP, where you CAN query before adding but I worry about how slow that would be.... I suppose if the records had a time or date stamp I could query the lastest entry in SAP and search for the records greater than that date / time in the other database (sorted by date)
And to be honest I am just doing a little research so I am not sure that records won't be deleted, I just want to prepare for the worst case senario.

thanks for advice!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On