分区表复制 [英] Partition table Replication

查看:171
本文介绍了分区表复制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Experts,


我计划从SQL Server 2014迁移到2017年的新版本企业。我正在考虑使用事务复制来保持数据同步。我是一个非常新的复制,所以我有一个情况请帮助,如果它可以使用复制执行这些更改



1 。场景:将2014年的备份恢复复制到2017年并在它们之间设置复制。 


我认为,这是可行的,但另一个挑战是我现有的表非常大且是INT数据类型。 


因此我想在2017年机器上对表格进行分区。还将数据类型从INT更新为Big INT。


因此,在执行从INT到Big INT的分区和数据类型之后。是否有可能设置复制,如果没有,请建议一个合适的方法。


谢谢&问候


Priya

解决方案

Hi
Priya,


 


复制支持分区切换。但是从文件中可以看出(复制
分区表和索引
),我们可以看到:


 


如果订阅者有不同的除分发表之外的分区表的定义,分发代理在尝试在订阅服务器上应用更改时将失败。


 


您也可以参考文件
进行架构更改发布数据库


 


最好的问候,


艾米丽


Hi Experts,

Am planning to migrate to a new version from SQL Server 2014 to 2017 enterprise. Am thinking of using the transactionreplication to keep the data sync. Am very new to replication so I have a situation please help with if its possible to perform those changes using replication.

1. Scenario : Copy a backup restore of 2014 to 2017 and setup replication between them. 

I think, this is doable but another challenge is that my existing table is very very large and is of INT data type. 

So am thinking to do partitioning of the table at 2017 machine & also update the data type from INT to Big INT.

So after performing partition and data type from INT to Big INT. Is it possible to setup replication if not please advice a suitable approach.

Thanks & regards

Priya

解决方案

Hi Priya,

 

Replication supports for partition switching. However from the document(Replicate Partitioned Tables and Indexes), we can see that:

 

If the Subscriber has a different definition for the partitioned table than the Publisher, the Distribution Agent will fail when it tries to apply changes at the Subscriber.

 

You can also refer to the document Make Schema Changes on Publication Databases.

 

Best Regards,

Emily


这篇关于分区表复制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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