使用触发器从另一个数据库复制数据 [英] Copy data from another database using trigger

查看:108
本文介绍了使用触发器从另一个数据库复制数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有2个数据库

数据库A具有一个表-ObservedValues,以固定的时间间隔在其中插入数据.


现在我想将这些数据插入到数据库B的值中.


但条件是我不能将触发器写入数据库A.必须做的任何事情都必须在数据库B中.编写sp,trigger

我该如何实现????

Hi,

i have 2 databases

Database A which has a table - ObservedValues, in which data is inserted at constant time interval.


now i want insert that data into values into database B.


but condition is that i cant write trigger into database A. whatever has to be done must be in database B. e.g. writing sp,trigger

how can i achieve this???

推荐答案

您只需要引用示例即可引用发送数据库

插入B.USERS

B成为其他数据库
U ONLY NEED TO REFERE THE SEND DATABASE BY FOR EXAMPLE

INSERT INTO B.USERS

B BEING THE OTHER DATABASE


这篇关于使用触发器从另一个数据库复制数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆