Click here to Skip to main content
16,004,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Two database in 2 different servers ,if i am changing in first database automatically second database will also update.Here i am using sql server 2008.So i want sqlquery/storeprocedure for this requirement and see the below example

Ex:
First Database
------------------------------
Server:192.168.0.101
Dbname:Employee
Table:emp_Salary

Second Database
------------------------------
Server:192.168.0.102
Dbname:Employee
Table:emp_Salary
Posted
Updated 2-Oct-13 20:40pm
v2

1 solution

It will be very wrong to do it using some home made SPs.
Use replication. It supported also on 2005 and 2008...

http://technet.microsoft.com/en-us/library/ms151198(v=sql.90).aspx[^]
http://technet.microsoft.com/en-us/library/ms143241(v=sql.105).aspx[^]
 
Share this answer
 
Comments
thatraja 3-Oct-13 3:41am    
Nice suggestion, 5!

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