如何在协作方案中执行第一次同步之前初始化数据库 [英] How to initialize database before doing first synchronization in Collaboration Scenarios

查看:69
本文介绍了如何在协作方案中执行第一次同步之前初始化数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个SQL Server Express数据库,每个数据库都有大量数据,我需要让它们与中央数据库同步。如果我使用Sync Framework上传数据,它将花费大量时间并总是导致超时异常。我想知道
我是否使用其他方法(如BCP命令)将数据上传到中央数据库,如何使跟踪元数据更新,然后让同步框架在此之后进行增量同步?



谢谢!

I have several SQL Server Express databaes, each of them has large amount of data, I need to let them sync with a central database. If I use Sync Framework to upload data, it will cost a lot of time and always cause time out exception. I want to know if I use other method such as BCP command to upload data to central database, how can I make the tracking-Metadata up to date then let sync framework do the incremental sync after that?

Thanks!

推荐答案

你可以指定
SetPopulateTrackingTableDefault
 当您配置范围以使用基表上的预先存在的行填充跟踪表时。
you can specify SetPopulateTrackingTableDefault when you provision the scope to populate the tracking tables with pre-existing rows on the base tables.


这篇关于如何在协作方案中执行第一次同步之前初始化数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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