我应该使用什么类型的数据库复制?
我有 2 个数据库,一个在本地服务器上,一个在远程服务器上。
我在本地数据库上创建了一个事务复制发布,它每分钟向远程数据库提供它获得的任何更新。到目前为止,这一切运行良好。
但是,本地数据库需要每天进行清理(删除所有信息)。这是我遇到问题的部分,我期待一种复制模式,该模式只会向服务器数据库提供插入内容,并使其在本地数据库被清理时忽略该部分。目前,远程数据库也正在进行清理。
不同类型的复制是否可以帮助我实现我想要的目标,或者复制不再是实现这一目标的方法?
I have 2 databases, one on local server and one on a remote server.
I created a transactional replication publication on the local DB, which feeds the remote DB every minute with whatever updates it gets. So far, this is working perfectly.
However, the local DB needs to get cleaned (all its information deleted) daily. THIS is the part I'm having trouble with, I was expecting a replication mode that would only feed the server DB with the inserts, and make it ignore the part when the local DB gets cleaned. At the moment, the remote DB is also getting cleaned.
Would a different kind of replication help me achieve what I want, or is replication no longer the way to do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看这个SO问题这里
Have a look at this SO question here