是否有一种简单的方法可以恢复 SQL Azure 数据同步工具对本地数据库所做的更改?
我尝试使用 SQL Azure 数据同步工具 并成功将本地数据库从我的开发计算机传输到 SQL Azure 帐户。然而,后来我注意到该工具悄悄地对我的本地数据库进行了一系列更改 - 在没有任何通知或确认对话框的情况下绝对不是一件好事。
有谁知道是否有一种简单的方法可以恢复同步工具所做的更改(添加的存储过程和跟踪表)?我知道手动删除内容始终是一种选择,但它很容易出错,我将其视为我的最后手段。
I tried using the SQL Azure Data Sync Tool and successfully transfered a local database from my dev machine to a SQL Azure account. However, later on I noticed that the tool has silently made a bunch of changes to my local database - definitely not a nice thing to do without any notification or confirmation dialog.
Does anybody know if there is an easy way to revert the changes(added stored procedures and tracking tables) that the sync tool has made? I know manually deleting stuff is always an option, but it's rather error prone I would consider it my last resort.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该同步工具用于使 SQL Azure 数据库与本地 SQL 数据库保持同步。跟踪表对于在数据更改时保持表同步是必要的。它的工作方式与 SQL Server 合并复制类似。我现在不知道有什么自动方法可以做到这一点。合并复制有一些工具和存储过程可以做到这一点,但它们花了一段时间才问世。
如果您只想将数据库复制到 SQL Azure,您应该编写脚本(使用 SSMS 很容易做到),或者使用其他方法。同步工具并不是复制数据库的好方法。
That sync tool is used to keep a SQL Azure database in sync with your local SQL database. The tracking tables are necessary to keep the tables in sync as the data changes. It works in a similar fashion to SQL Server Merge Replication. I am not aware of an automatic way to do that right now. Merge Replication has tools and SPROCS floating around to do this but it took a while for them to come out.
If you just want to copy a database to SQL Azure you should script it, which is easy to do with SSMS, or use some other method. The sync tool is not a good way to just copy a database.
问:如何手动取消配置数据库?
答:独立的可执行文件随 LocalAgentSetup.msi 一起安装,您可以使用它来取消配置在将数据库或表添加到同步服务时创建的 SQL 数据同步对象。
MSDN 文章此处。
Q: How do I manually deprovision a database?
A. A standalone executable is installed with the LocalAgentSetup.msi that you can use to de-provision the SQL Data Sync objects that are created when you add a database or table to your synchronization service.
MSDN Article Here.