[英]DACPAC - How to deploy one particular schema
I've been looking to find ways to deploy one particular schema (Schema B) from database (Schema A, Schema B, Schema c..) using dacpac and sqlpackage.exe.我一直在寻找使用 dacpac 和 sqlpackage.exe 从数据库(架构 A、架构 B、架构 c ..)部署一个特定架构(架构 B)的方法。
I found this similar question but looks like the links on it have been archived.我发现了这个类似的问题,但看起来上面的链接已被存档。 also found out to put this parameter in sqlpackage.exe cmd
DropObjectsNotInSource = false
but still both schema are getting deployed.还发现将此参数放入 sqlpackage.exe cmd
DropObjectsNotInSource = false
但仍然部署了两个架构。 can anyone help?谁能帮忙?
I found out this can be done using this DeploymentContributorFilterer .我发现这可以使用这个DeploymentContributorFilterer来完成。
Put the AgileSqlClub.SqlPackageFilter.dll file into the same folder as SqlPackage.exe, and add these commmand line parameters to your deployment:将 AgileSqlClub.SqlPackageFilter.dll 文件放入与 SqlPackage.exe 相同的文件夹中,并将这些命令行参数添加到您的部署中:
/p:AdditionalDeploymentContributors=AgileSqlClub.DeploymentFilterContributor /p:AdditionalDeploymentContributorArguments="SqlPackageFilter=IgnoreSchema(**SchemaA**)"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.