RedGate SQL Source Control无法获取迁移脚本

时间:2012-10-12 16:46:59

标签: redgate

我有3个使用带SVN的RedGate SQL源代码控制的SQL Sever数据库。当我创建自定义迁移脚本时,它由3个数据库中的1个获取,而不是由另一个获取。这是我正在使用的命令行:

“C:\ Program Files(x86)\ Red Gate \ SQL Compare 10 \ sqlcompare”/ server1:dev03 / db1:Dev_CORE / version1:head / server2:testsql01 / db2:Test_Core / username2:foo / password2:bar /ScriptFile:"C:\MigrationScriptCore.sql“/ Force / verbose

1 个答案:

答案 0 :(得分:3)

Redgate使用SQL Server扩展属性来确定数据库所在的SVN版本,以及在何处查找更新数据库所需的脚本。真正的愚蠢的是,这些扩展属性是CASE SENSITIVE。所以我的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的工作人员无法立即解决我的问题,但经过大量的反复试验后我才能找到自己的问题。希望这会节省一些人很多时间!

干杯。