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 > General > Database Concepts & Design > Synchronizing two databases; very basic

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-07-04, 22:45
Sam Hobbs Sam Hobbs is offline
Registered User
 
Join Date: Mar 2003
Location: California
Posts: 20
Synchronizing two databases; very basic

This is a very basic question but I hope it is not a problem that I ask.

I am developing an interface that will update a database from another database. The two databases are for applications we did not develop.

For each input record, it is not known whether a record needs to be created in the other database. I am interested in knowing if there is much difference in whether we:

(1) first do a query to determine if the record exists, then do either an insert or an update

(2) do an update first and if the record does not exist then do an insert

One advantage to doing the query first is that we can determine when the data has actually changed. Are there any other significant advantages or disadvantages?

For what it is worth, the output database is an Access database; the input database is a SQL Server database but could be another database format such as dbase.
Reply With Quote
  #2 (permalink)  
Old 12-10-04, 00:07
bcrockett bcrockett is offline
Registered User
 
Join Date: Jan 2003
Location: Duncan BC Canada
Posts: 80
Is this a one-shot migration of the data from source to destination or will it be ongoing?
__________________
Bradley
Reply With Quote
  #3 (permalink)  
Old 12-10-04, 00:24
Sam Hobbs Sam Hobbs is offline
Registered User
 
Join Date: Mar 2003
Location: California
Posts: 20
This will be a regular process, run aproximately daily. It will probably be scheduled to run overnight without interaction, but the user will run it whenever needed.
Reply With Quote
  #4 (permalink)  
Old 01-12-05, 22:44
kelisablitz kelisablitz is offline
Registered User
 
Join Date: Apr 2004
Location: Kuala Lumpur
Posts: 10
im in a similar situation and trying to do the same process..but mine is db2 udb os/390 to db2 udb windows..it's like populating the win2k server's database.

but im doing it using a java program..u can see my post in 'data manipulation' forum.
__________________
share the knowledge..
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