如何通过一个数据库自动更新数据库到其他 [英] How to update database Automatically through One Database to other
本文介绍了如何通过一个数据库自动更新数据库到其他的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何通过一个数据库自动更新数据库
示例:我有两种类型的数据库A和数据库B,我希望将数据库A的所有记录复制到数据库B,如果数据库A是更新了如何实现?
请帮助我。我的数据库在SQL Server 2008中
How to update database Automatically through One Database to other
Example : I Have Two Type of Database A and Database B and i want to Copy All Record of Database A to Database B if Database A is Updated how it can be possible ?
Please Help Me. My Database is in SQL Server 2008
推荐答案
您可以在表上放置一个触发器(在A中)并执行适当的SQL。
请参阅: http://technet.microsoft.com/en-us/library /ms189799.aspx [ ^ ]
请务必不仅要阅读如何以及限制。
You can put a trigger on your tables (in A) and executed appropriate SQL.
SEE: http://technet.microsoft.com/en-us/library/ms189799.aspx[^]
Be sure to read not only the 'how to' but also the restrictions.
这篇关于如何通过一个数据库自动更新数据库到其他的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文