Redgate 的 SQLCompare 架构比较不通过命令行删除或添加对象

发布于 2024-08-02 00:42:11 字数 335 浏览 2 评论 0原文

我有一个已保存的 SQLCompare 项目,用于将本地数据库与另一个“主”数据库同步。 当我通过 GUI 运行该项目时,一切正常。 但是,当我通过命令行运行它时,只有双方都存在的对象才会同步。 例如,如果向表中添加或删除列,则该更改将被传播。 但是,如果添加或删除整个表,则该更改不会传播到我的本地数据库。 有什么方法可以让命令行同步所有内容吗? 我希望我的本地数据库与主数据库完全匹配。

我运行的是8.1版本。 这是我正在使用的命令行:

SQLCompare.exe /project:SynchSchemaToLocal.scp /synch /v 

I have a saved SQLCompare project which I use to synchronize my local database with another "master" database. When I run the project via the GUI, everything works fine. However when I run it via the command line, only objects that exist on both sides get synchronized. For example, if a column is added to or removed from a table, that change will get propagated. But if a whole table was added or removed, that change does not get propagated to my local database. Is there some way to get the command line to synchronize everything? I want my local database to match the master database exactly.

I'm running version 8.1. Here's the command line I'm using:

SQLCompare.exe /project:SynchSchemaToLocal.scp /synch /v 

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

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

发布评论

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

评论(1

错爱 2024-08-09 00:42:11

在 UI 项目中,确保您要同步的每个组的“包含在同步中”列中都有“绿色勾号”。

这将确保同步时包含该组中的所有对象。

In the UI project, make sure you have 'green ticks' in the 'include in synchronization' column for each of the groups you want to sync'.

This will ensure that all objects in that group will be included when synchronizing.

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