Click here to Skip to main content
15,918,889 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I want to syncronise data from different Tables on periodic basis from one database to other. I want only to find the new updations made in one database and want to reflect to other respective database.
I dont know the tables in which the records are updated.

For eg. If I add a record in table X, its respective transation is affected in Table B of Database C.

All the database will be on differnet servers/Locations eg - Main Server is A and I want the updations from Database c,d,e which can be in different location.

Please Help.

Regards,

Chirag.
Posted
Updated 20-Feb-12 23:46pm
v3

You could for example read both the databases and compare the result sets to find the changed rows. These rows you have to update...

you can use a timer for doing this periodically.

Probably not the best solution but this should do the it.

Regards
Piet
 
Share this answer
 
Comments
Chirag Shah.Gogari 21-Feb-12 4:40am    
Hi, Thanks for your responce, But the issue is that I dont know the tables in which the records are updated and eg, If I add a record in table X, its respective transation is affected in Table B. Abd both the database will be on differnet servers eg - Main Server is A and I want the updated from Database c,d,e which can be in different location
Put a time stamp field in the first database. In the second database store the previous update time. Then periodically when you want to update the second database, select all the records in the first database which are newer than the previous update time stored in the second database and update the previous updated time in the second database to the present time for further updates.
 
Share this answer
 
Comments
Chirag Shah.Gogari 21-Feb-12 4:35am    
Hi, Thanks for your responce, But the issue is that I dont know the tables in which the records are updated and eg, If I add a record in table X, its respective transation is affected in Table B. Abd both the database will be on differnet servers eg - Main Server is A and I want the updated from Database c,d,e which can be in different location
Hi,

You can use Microsoft Synchronize Framework.

This will synchronize your databases with different scenario.

hope this will help you,

thanks
-Amit.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900