将数据从本地SQL Server更新到Web SQL Server [英] Update data from local sql server to web sql server
本文介绍了将数据从本地SQL Server更新到Web SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个相同的数据库.一个数据库位于本地sql服务器,另一个位于webServer sql.所以我的问题是我希望将插入的数据插入本地服务器数据库是在Webserver Sql数据库中自动更新的. sql是否具有某些功能?.
I have two same database. one database place at local sql server and another at webServer sql.So my quetion is I want the inserted data into local server Database is automatic update at Webserver Sql database. Is sql have some features to do it?.
推荐答案
这取决于您所说的自动更新. SQL Server支持镜像
http://msdn.microsoft.com/en-us/library/ms189852.aspx [ ^ ]
如果这不适合,则可以使用SSIS http://msdn.microsoft.com/en-我们/library/ms141026.aspx [ ^ ]
并创建一个SQL Server作业
或者,在表中添加触发器,并在添加或更新行时使用链接服务器连接来更新另一个数据库.
It depends what you mean by automatic update. SQL Server does support mirroring
http://msdn.microsoft.com/en-us/library/ms189852.aspx[^]
If this doesn''t suit then you can use SSIS http://msdn.microsoft.com/en-us/library/ms141026.aspx[^]
and create a SQL Server job
Or, add a trigger to the table(s) and use a linked server connection to update the other database when a row is added or updated.
这篇关于将数据从本地SQL Server更新到Web SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文