【发布时间】:2013-03-17 21:16:40
【问题描述】:
使用 SQL 比较 10, 我创建了一个 .scp 文件,它将本地数据库(在本地构建服务器上)与源代码控制(通过 redgate SQL 源代码控制的 TFS)中的内容进行比较
列出了使用 GUI 的一些差异。
从命令行运行 .scp 文件时,根本不会列出任何差异。 - “选择的对象相同或比较中没有选择对象”
命令行是
"C:\Program Files (x86)\Red Gate\SQL Compare 10\sqlcompare.exe" /project:"C:\Users\CIUser\Documents\SQL Compare\SharedProjects\MyDBName v MyDBName (Head).scp" /scriptfile:deploy_MyDBName.sql /include:identical /force
注意
The /include:/identical switch means the compare will not report an error if no changes are detected
The /force switch forces an overwrite of the sql script, rather than causing an error
【问题讨论】:
标签: command-line redgate sqlcompare