如何在同步完成后删除表跟踪数据和scope_config,scope_info? [英] How to delete table tracking data and scope_config,scope_info after synchonization is done?

查看:168
本文介绍了如何在同步完成后删除表跟踪数据和scope_config,scope_info?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用WCF同步Sql express和远程sqlserver 2005,为每个表创建跟踪表,并且对于所有表一个scope_info,创建一个scope_config表。


由于这个数据继续增加,这在同步后最不重要,我想在完成同步后删除。


如何做到这一点?


  ;


 


 

解决方案

SyncFx SDK不会公开API来修改/删除范围定义,也不会删除范围表和维护元数据的相应触发器/存储过程。


所以如果你想要删除这些对象,你必须手动完成。


而不是删除同步对象,你可能想要定期清理元数据。请参阅 http://msdn.microsoft.com/en-us/library/ee617373( SQL.105)的.aspx


i synced Sql express and remote sqlserver 2005 using WCF,for each table - tracking table is created and also for all table one scope_info,one scope_config tables are created.

since this data goes on increases which is least important after sync,i wan to delete once sync is done.

How to do that?

 

 

 

解决方案

SyncFx SDK doesn't expose an API to modify/delete scope definition as well as dropping the scope tables and the corresponding triggers/stored procedures that maintain the metadata.

So if you want to drop those objects, you'll have to do it manually.

instead of dropping the sync objects, you may want to do periodic metadata clean up instead. See http://msdn.microsoft.com/en-us/library/ee617373(SQL.105).aspx


这篇关于如何在同步完成后删除表跟踪数据和scope_config,scope_info?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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