[英]DACPAC not deploying to Azure SQL Database V12
I've created an new SQL V12 database on azure. 我在azure上创建了一个新的SQL V12数据库。 I've been enabled to update that database once to the model we have in our database project.
我已经能够将数据库一次更新为数据库项目中的模型。 We did this by using the 'Register as Data-tier Application' in SQL Management Studio.
我们通过使用SQL Management Studio中的“注册为数据层应用程序”来完成此操作。
Now we have an update on our model and we want to update our database again with a new DACPAC. 现在,我们对模型进行了更新,我们希望使用新的DACPAC再次更新数据库。 When we use the function 'Upgrade Data-tier Application' (again trough SQL Management Studio) we get the error message:
当我们使用功能“升级数据层应用程序”(再次通过SQL Management Studio)时,我们收到错误消息:
TITLE: Microsoft SQL Server Management Studio
标题:Microsoft SQL Server Management Studio
Databases registered as a DAC database must be hosted by an instance of SQL 2005 SP4, SQL 2008 SP2, SQL 2008 R2, SQL 2012, SQL 2014 or Microsoft Azure SQL Database.
注册为DAC数据库的数据库必须由SQL 2005 SP4,SQL 2008 SP2,SQL 2008 R2,SQL 2012,SQL 2014或Microsoft Azure SQL数据库的实例托管。 (Microsoft.SqlServer.Dac)
(Microsoft.SqlServer.Dac)
------------------------------ ADDITIONAL INFORMATION:
- - - - - - - - - - - - - - - 附加信息:
Unable to proceed with DAC operations on the target instance because it does not support DACs.
由于目标实例不支持DAC,因此无法继续对其进行DAC操作。 Specify another instance, or upgrade to a version that supports DACs.
指定另一个实例,或升级到支持DAC的版本。 (Microsoft.Data.Tools.Schema.Sql)
(Microsoft.Data.Tools.Schema.Sql)
Very strange notification cause the database is already registered as Data-tier application and has been deployed once. 非常奇怪的通知,因为该数据库已经被注册为数据层应用程序,并且已经部署了一次。 I can't find any logs giving more details.
我找不到任何提供更多详细信息的日志。
Our Database project has the target platform: "Microsoft Azure SQL Database V12" so that is the correct one. 我们的数据库项目具有目标平台:“ Microsoft Azure SQL数据库V12”,因此是正确的平台。
Did you get anywhere with this? 你有什么办法吗? I'm encountering the same error.
我遇到了同样的错误。 Need Azure SQL V12 so I can include Always Encrypted CMK/CEK and column encryption settings with the dacpac.
需要Azure SQL V12,因此我可以在dacpac中包含Always Encrypted CMK / CEK和列加密设置。 Also, I'm deploying to a
另外,我正在部署到
I tried deploying from SSMS 17.2 and VS2015 w/ SSDT 14.0.61021.0 with no success. 我尝试从带有SSDT 14.0.61021.0的SSMS 17.2和VS2015进行部署,但没有成功。 I had originally published to the same DB with the DACPAC target as "Azure SQL Database" (not V12).
我最初将具有DACPAC目标的数据库发布为“ Azure SQL数据库”(不是V12)。 Then later needed to change to V12 so I could build the dacpac with CEKs, CMKs and column encryption settings.
然后,以后需要更改为V12,以便我可以使用CEK,CMK和列加密设置来构建dacpac。 After changing to V12 I started getting the same failure message.
更改为V12后,我开始收到相同的失败消息。
I was able to publish for V12 target from VS2015 SSDT to the existing DB if I unchecked the "Register as Data-tier application" checkbox. 如果取消选中“注册为数据层应用程序”复选框,则能够将VS2015 SSDT中的V12目标发布到现有数据库。 Also, I created a new DB and made my first dacpac deployment the one targeting V12 and it succeeded as well.
另外,我创建了一个新的数据库,并使我的第一个dacpac部署成为针对V12的一个,它也成功了。 I would think the dac framework would be able to handle the target Azure SQL DB to Azure SQL DB V12, but it seems not.
我认为dac框架将能够处理目标Azure SQL DB到Azure SQL DB V12,但似乎没有。
Hope this helps you or someone else that runs into this. 希望这对您或遇到此问题的其他人有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.