MS-SQL Server 2005: Initializing a merge subscription with alternate snapshot location

我的梦境 提交于 2019-12-03 20:09:55

I had to do something similar to this when replicating data from Los Angeles, CA to China. The snap would have taken 44 days to load using normal methods.

What I did was configure the SQL Replication to use a local path to the snapshot. I then disabled the transactional job (in your case the merge job). I then ran the snap. I zipped up the snap and FTPed the files from California to China. When they got to China I unzipped them and put them in the same folder path that I used in California.

I then ran the distrib.exe from the command line on the server in China. This loaded the data into the table in china. Once the snap was loaded I shutdown the distributor on the server in China and started up the normal distributor on the server in California.

This method only took about 28 hours instead of over a month.

If your data will take more then a couple of days to get to its destination then you will need to edit the publication and increase the amount of data that can be queued up or the subscriber will be timed out and a new snapshot will need to be taken.

We just went through something just like this, and it is not pretty. Even though all of the servers involved were local, it still took a long time.

Just to make things more difficult, at least with SQL 2000, the snapshot will fail if the compressed cab would exceed 4 Gig.

The best advice I could offer is to make sure that each site has good backups available. With that, at least the data would not have to be hand-carried to the subscriber.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!