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
 General SQL Server Forums
 New to SQL Server Programming
 data sync in two databases

Author  Topic 

aditi11
Starting Member

3 Posts

Posted - 2013-06-16 : 11:14:30
hi,
i am newbie in sql development . i have two databases A and B. i would like to write a trigger or a query by which i can update or synchronize the data in both the databases
for eg, if there is an update happening in a table of database A then database B should also get updated. i want it to happen for selected tables only.or lets say trigger of database A updating the table of database B. please help.

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2013-06-16 : 12:31:49
Replication

mohammad.javeed.ahmed@gmail.com
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-06-16 : 14:20:52
there are different type of replication. Based on your need you may use transaction,snapshot or merge replication

see
http://technet.microsoft.com/en-us/library/ms152531.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -