SQL Server - Fails to import Data-Tier Application from SQL Azure - sql-server

I'm attempting to import a database to my local SQL Server 2012 instance from SQL Azure using the "Import Data-Tier Application" wizard.
I simply exported the database to blob storage, then downloaded the file and then selected to import the database.
This fails each time with the error message below:
The error is occurring because it seems to want to create a DEFAULT constraint twice. Has anyone else had this issue?

I got the same error and solved it by installing the preview version of SQL 2016 SQL Management Studio.

Related

SQL Server Import plugin not starting

In Azure data studio,
using SQL Server Import plugin,
Microsoft SQL Server Import for Azure Data Studio
I always receive this message, and the plugin never start

Azure SQL database creation issue from dacpac

I am trying to create new SQL Azure database using dacpac file created from local SQL server database using SSDT .
I am getting error as
Publish failed.An error occured during deployment plan generation. Deployment cannot continue. A project which specifies SQL Server 2017 as the target platform cannot be published to Microsoft Azure SQL Database v12.
But did not get any option to choose while doing Extract Data-tier Application to generate dacpac.
Below is error while creating Azure SQL database :
You can do this workaround, you can go into the json file for the project and manually target V12. Edit the sqlproj file.
<DSP>Microsoft.Data.Tools.Schema.Sql.SqlAzureV12DatabaseSchemaProvider</DSP>

DACPAC not deploying to Azure SQL Database V12

I've created an new SQL V12 database on azure. 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.
Now we have an update on our model and we want to update our database again with a new DACPAC. When we use the function 'Upgrade Data-tier Application' (again trough SQL Management Studio) we get the error message:
TITLE: 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. (Microsoft.SqlServer.Dac)
------------------------------ ADDITIONAL INFORMATION:
Unable to proceed with DAC operations on the target instance because
it does not support DACs. Specify another instance, or upgrade to a
version that supports DACs. (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.
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. Also, I'm deploying to a
I tried deploying from SSMS 17.2 and VS2015 w/ SSDT 14.0.61021.0 with no success.
I had originally published to the same DB with the DACPAC target as "Azure SQL Database" (not V12). Then later needed to change to V12 so I could build the dacpac with CEKs, CMKs and column encryption settings. After changing to V12 I started getting the same failure message.
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.
Also, I created a new DB and made my first dacpac deployment the one targeting V12 and it succeeded as well. 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.
Hope this helps you or someone else that runs into this.

Import Azure V12 database to local SQL 2012

While trying to import .bacpac file getting an error
"The compatibility level of the source schema is not supported"
Thanks
V12 from Azure requires SQL 2014 or later. Otherwise, you're doing it correctly (bacpacs are fine, it's just the local SQL compatibility that's your problem)

Unable to import BACPAC from SQL Azure into SQL Server 2014

I get the message below when attempting to import my database from SQL Azure. I believe this is following the upgrade to V12.
I have just installed SQL Server 2014 SP1 but it doesn't appear to have solved the issue. Current version of SQL Server Management Studio is:
12.0.4100.1
Any help most appreciated!!
TITLE: Microsoft SQL Server Management Studio
Could not load schema model from package. (Microsoft.SqlServer.Dac)
ADDITIONAL INFORMATION:
The Element or Annotation class SqlDatabaseOptions does not contain the Property class QueryStoreStaleQueryThreshold. (Microsoft.Data.Tools.Schema.Sql)
BUTTONS:
OK

Resources