1

我正在使用 SQL 比较生成脚本文件以部署到生产环境,但我无法使用包含或排除命令行选项来处理扩展属性。这是我到目前为止尝试过的命令。

让我尝试仅包含具有扩展属性“功能”的对象

SQLCompare.exe /scripts1:.\ /empty2 /Include:ExtendedProperty:Feature*

好的,让我尝试使用扩展属性包含所有内容。

SQLCompare.exe /scripts1:.\ /empty2 /Include:ExtendedProperty:.*

那么,让我尝试在没有正则表达式的情况下再次这样做。

SQLCompare.exe /scripts1:.\ /empty2 /Include:ExtendedProperty

每次我一无所获。没有变化。所以我尝试包含所有存储过程并排除具有扩展属性的存储过程。

SQLCompare.exe /scripts1:.\ /empty2 /Include:StoredProcedure /Exclude:ExtendedProperty:Feature.*

仍然没有运气。有没有人成功使用过这个功能?

4

0 回答 0