从多个服务器更新数据库数据 [英] Updating database data from multiple server
问题描述
两个不同服务器中的两个数据库,如果我在第一个数据库中自动更改第二个数据库也将更新。这里我使用的是sql server 2008.So我想要sqlquery / storeprocedure这个要求并看下面的例子
Ex:
First Database
------------------ ------------
服务器:192.168.0.101
Dbname:员工
表:emp_Salary
第二个数据库
--------------------------- ---
服务器:192.168.0.102
Dbname:员工
表:emp_Salary
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
推荐答案
使用一些自制的SP进行它是非常错误的。
使用复制。它也支持2005年和2008年...
http://technet.microsoft.com/en-us/library/ms151198(v = sql.90).aspx [ ^ ]
http://technet.microsoft.com/en-us/library/ms143241(ⅴ = sql.105).aspx [ ^ ]
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[^]
这篇关于从多个服务器更新数据库数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!