简体   繁体   English

DACPAC - 如何部署一个特定的模式

[英]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.

相关问题 如何让 DACPAC 只更新一个架构? - How to make DACPAC update only one schema? 如何使用Visual Studio中的DACPAC部署具有不同架构的对象 - How to deploy objects with different schema using DACPAC from Visual Studio SSDT如何:部署.dacpac而不丢失自定义客户端数据库对象? - SSDT How to: Deploy .dacpac without losing custom client database objects? 如何使用dacpac和SqlPackage.exe部署时态表 - How to deploy temporal tables with dacpac and SqlPackage.exe 用于DACPAC部署的SQL Azure和Powershell - SQL Azure and Powershell for DACPAC deploy 使用powershell部署具有变量替换的dacpac - Deploy dacpac with variable substitution with powershell SQLServer:如何将特定表从一个架构复制到同一数据库、同一服务器上的另一个架构 - SQLServer : How to copy a particular table from one schema to other schema on the same db,same server 比较用于SQL Server项目的TFS中的架构或在SSMS中创建.DACPAC文件时,如何解决依赖性? - how to resolve dependency when comparing schema in TFS for SQL Server project or when creating .DACPAC files in SSMS? 如何使用VSTS(Visual Studio团队服务)发布管理将DACPAC文件部署到sql azure - How to deploy DACPAC file to sql azure using VSTS (Visual studio team services) Release Management 无法使用 DacPac 部署到 SQL Server - Not able to deploy to SQL Server using DacPac
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM