Questions tagged [bacpac]

BACPACs are archives containing the schema and data of Data-tier Applications. BACPACs can be used to backup/restore databases in SQL Server and Microsoft Azure SQL Databases.

bacpac
Filter by
Sorted by
Tagged with
134 votes
6 answers
58k views

Azure SQL Database Bacpac Local Restore

I've created a BACPAC backup of my Azure SQL Database using the "Export" option within the Azure Management Console. Having downloaded this to my machine I'm a little stuck on how I can restore this ...
Ben Foster's user avatar
  • 34.6k
22 votes
3 answers
12k views

SQL Azure V12 BACPAC import error: "The internal target platform type SqlAzureV12DatabaseSchemaProvider does not support schema file version '3.3'"

Until a very few days ago I was able to import a V12 BACPAC from Azure to my local server with SQL Server 2014 SP1 CU6 (12.0.4449.0). But now, when I try to import the BACPAC, my SQL Server ...
Stefano's user avatar
  • 273
21 votes
7 answers
14k views

Error Importing Azure bacpac file to local db error incorrect syntax near EXTERNAL

When importing db fro azure bacpac file to local sql server 2016 I'm geting the following error. Error SQL72014: .Net SqlClient Data Provider: Msg 102, Level 15, State 1, Line 1 Incorrect syntax ...
Zenon Iwanicki's user avatar
38 votes
4 answers
18k views

How to import Azure SQL backup (.bacpac) to LocalDB using Visual Studio?

I imagine this would be quite a mainstream scenario but I can't find how to import an exported Azure SQL database (.bacpac) into my LocalDB in Visual Studio 2013. Am I missing something or Visual ...
Borek Bernard's user avatar
13 votes
4 answers
8k views

Import bacpac fails with "does not contain QueryStoreStaleQueryThreshold"

I am getting the error below when trying to import bacpac file from Azure sql database with management studio 2014. I have upgraded the Azure sql database to v12 and suspect it has something to do ...
Jonas Røineslien's user avatar
3 votes
1 answer
794 views

Error restoring database to server: .NET Core should not be using a file backed model

I was always able to restore a bacpac to a SQL Server in Azure using a local file like this: ds = new DacServices(connectionString); ds.ImportBacpac(BacPackage.Load(filePath), dbTargetName, ...
CodeMonkey's user avatar
  • 11.8k
1 vote
2 answers
2k views

converting a blob (.bacpac) to .bacpac file to import database to SQL Server Azure?

While working in MVC/ C# with Azure I need to restore database from a .bacpac file which is stored in blob storage. I m using DAC Framework API to access .bacpac from Blob storage. Issue: ...
Toubi's user avatar
  • 2,499
19 votes
1 answer
7k views

Unable to restore bacpac due to foreign key conflict

I'm attempting to restore a backup (.bacpac) of a SQL Azure database to another SQL Azure database but am unable to do so because of the following error: Error encountered during the service ...
Fishcake's user avatar
  • 10.6k
11 votes
3 answers
5k views

SQL Server bacpac fails on local import in latest update (Online index operations can only be performed in Enterprise edition of SQL Server)

I have an SQL Azure database and connect to it in SQL Server Management Studio. I do Export Data Tier Application and then Import Data Tier Application for the .bacpac file to get it into my localdb. ...
Vince's user avatar
  • 565
7 votes
6 answers
18k views

Sql Server change fill factor value for all indexes by tsql

I have to expoet my DB into a bacpac file to import it into Azure. When I try to export I get an error because any indexes have a fillFactor value. I've found how to set a fillFactor value for all ...
danielUrrero's user avatar
5 votes
3 answers
8k views

how to deal with "remapping can only be done for users that were mapped to Windows or SQL logins"

The scenario: Trying to restore from a bacpac taken from SQL Azure. Either to a new SQL Azure database instance, or an on premises server. For the earlier with the Management portal or the DAC ...
eglasius's user avatar
  • 36k
2 votes
1 answer
876 views

Error "The storage URI is not valid" when creating a new SQL Azure database from a bacpac

I'm trying to create a new SQL Azure database from a bacpac file I exported locally and uploaded as a BLOB to a storage account container. When I choose Import Database on the SQL server and choose to ...
Chris's user avatar
  • 3,181
1 vote
1 answer
1k views

C# Import from bacpac to Azure and add database to Elastic pool

I need to create a database in SQL Azure importing schema and data from a BACPAC file. I use the method ImportBacPac of the DacServices object. I see that I can specify some options using ...
skysurfer's user avatar
  • 813
1 vote
1 answer
2k views

Can you create a SQL Azure BACPAC from a Remote C# Application

I'm working on a tool to allow backup and restore of SQL Azure databases between various local & azure environments. I have a working version where the BACPAC is created and directly streamed to ...
Eoin Campbell's user avatar
0 votes
1 answer
841 views

SqlPackage import maximum db size

I want to import a database from a .bacpac file to a SQL Server in Azure. I read the document here: https://learn.microsoft.com/en-us/sql/tools/sqlpackage/sqlpackage-import?view=sql-server-ver15 It ...
CodeMonkey's user avatar
  • 11.8k