Sync Framework 2.1 - 有没有办法从数据库远程范围工件?

发布于 2024-10-01 08:18:28 字数 168 浏览 1 评论 0原文

我目前正在将同步框架 1 的应用程序升级到版本 2。作为此过程的一部分,我使用新的范围界定系统并放弃使用 SQL Server 更改跟踪。

看来,为了为同步框架提供远程数据库,必须创建许多新表和存储过程。

如果不再需要这些人工制品,有没有办法使用 API 来删除它们?

谢谢

I am currently upgrading an application that made us of sync framework 1 to version 2. As part of this I am using the new scoping system and dropping the use of SQL Server Change Tracking.

It would appear that in order to provision a remote database for sync framework a number of new tables and stored procedures must be created.

Is there a way, using the API, to remove these artefacts should they no longer be needed?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初心 2024-10-08 08:18:28

请参阅 http://msdn.microsoft.com/en- us/library/ff928603%28SQL.110%29.aspx

删除范围:

// Remove the retail customer scope from the Sql Server client database.
SqlSyncScopeDeprovisioning clientSqlDepro = new SqlSyncScopeDeprovisioning(clientSqlConn);

// Remove the scope.
clientSqlDepro.DeprovisionScope("RetailCustomers");

删除所有同步元数据工件:

// Remove all scopes from the SQL Server Compact database.
SqlSyncScopeDeprovisioning clientSqlDepro = new SqlSyncScopeDeprovisioning(clientSqlConn);
clientSqlDepro.DeprovisionStore();

如果您使用自定义架构和/或表名前缀,请不要忘记将它们添加到SqlSyncScopeDeprovisioning 对象。

See http://msdn.microsoft.com/en-us/library/ff928603%28SQL.110%29.aspx

Remove a scope:

// Remove the retail customer scope from the Sql Server client database.
SqlSyncScopeDeprovisioning clientSqlDepro = new SqlSyncScopeDeprovisioning(clientSqlConn);

// Remove the scope.
clientSqlDepro.DeprovisionScope("RetailCustomers");

Remove all sync metadata artifacts:

// Remove all scopes from the SQL Server Compact database.
SqlSyncScopeDeprovisioning clientSqlDepro = new SqlSyncScopeDeprovisioning(clientSqlConn);
clientSqlDepro.DeprovisionStore();

If you use a custom schema and/or prefix for table names, don't forget to add these to the SqlSyncScopeDeprovisioning object.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文