我有3个SQL服务器数据库使用RedGate SQL源码控制与SVN。当我创建自定义迁移脚本时,它被3个数据库中的1个数据库拾取,但不被另一个数据库拾取。下面是我使用的命令行:
"C:\Program Files (x86)\Red Gate\SQL Compare 10\SQL Compare“/server1:dev03 /db1:Dev_CORE /version1:head /server2:testsql01 /db2:Test_Core /username2:foo /password2:bar /ScriptFile:"C:\MigrationScriptCore.sql”/Force /verbose
发布于 2012-10-13 00:46:59
Redgate使用SQL Server扩展属性来确定数据库的SVN版本,以及在哪里可以找到更新数据库所需的脚本。真正愚蠢的是,这些扩展属性是区分大小写的。所以我的dev DB中的SVN路径是:
SQLSourceControl迁移脚本位置
<?xml version="1.0" encoding="utf-16" standalone="yes"?>
<ISOCCompareLocation version="1" type="SvnLocation">
<RepositoryUrl>http://svn.company.com/svn/**DIR1**/trunk/Database/Core/MigrationScripts/</RepositoryUrl>
</ISOCCompareLocation>在我的测试数据库中是:
SQLSourceControl迁移脚本位置
<?xml version="1.0" encoding="utf-16" standalone="yes"?>
<ISOCCompareLocation version="1" type="SvnLocation">
<RepositoryUrl>http://svn.company.com/svn/**dir1**/trunk/Database/Core/MigrationScripts/</RepositoryUrl>
</ISOCCompareLocation>redgate的人不能马上解决我的问题,但经过多次尝试和错误,我找到了自己的问题。希望这能为一些人节省很多时间!
干杯。
https://stackoverflow.com/questions/12863629
复制相似问题