如何在数据位于 table 中时使用模式比较更新 table?

How to update table using schema compare while data is in table?

使用 Visual Studio Enterprise 2015

我想使用模式比较来将一堆 table 更改从测试环境更新到我的本地环境。

我遇到错误:

Rows were detected. The schema update is terminating because data loss might occur.

所以这是说我在 table 中有数据要更新,如果我进行了 table 更改,我可能会丢失数据。但之后我将进行数据比较,以获取更新后的数据。如何覆盖上述错误并强制更改?或者我必须先截断 table 中的数据吗?

提前致谢

我在设置中找到了答案。

单击比较和更新按钮旁边的选项齿轮。

接下来单击“常规”选项卡,然后取消选中 "Block on possible data loss"

希望这对以后的人有所帮助。