SQL Azure V12 BACPAC import error. "Could not read schema model header information from package. The model version '3.5' is not supported

妖精的绣舞 提交于 2019-12-22 04:37:07

问题


We take bacpacs of our Azure V12 database every night and restore locally using the command

C:\Program Files (x86)\Microsoft SQL Server\120\DAC\bin>.\SqlPackage.exe /a:Import /sf:C:\1.bacpac /tdn:db1 /tsn:server1

As of 8 Nov 2016, this command has started failing with :

*** Error importing database:Could not read schema model header information from package. The model version '3.5' is not supported.

This looks similar to a previous problem we had with this process back in April SQL Azure V12 BACPAC import error: “The internal target platform type SqlAzureV12DatabaseSchemaProvider does not support schema file version '3.3'”

That time is was due to a scoped configuration option of maxdop. This time it appears to be another new configuration option which has just appeared (from the model.xml):

<Property Name="TemporalHistoryRetentionEnabled" Value="False" />

Why has this property seemingly randomly appeared in the model.xml ?


回答1:


I ran into the same issue. There is a new data tier applications framework.

It took me a few hours to find it.......

https://www.microsoft.com/en-us/download/details.aspx?id=53876

I installed it and my imports from bacpac files with sqlpackage.exe work again.

Hope that helps!

ps. I am on a 64 bit machine and had to install both the 32 and 64 bit framework upgrade.



来源:https://stackoverflow.com/questions/40516564/sql-azure-v12-bacpac-import-error-could-not-read-schema-model-header-informati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!