简体   繁体   中英

When Deleting/Re-importing a .bacpac file from v12 Azure SQL Database in to the same server tables are not imported

Here is what I did:

  1. Created export (.bacpac saved to storage account) of "my-db" Azure SQL Database using (new) management portal.
  2. Deleted the database "my-db" (using new Azure Portal) from "my-v12-azure-db-server".
  3. Again from the new Azure portal, attempted to import the .bacpac file from step one into "my-v12-azure-db-server".

Result: The database with the correct name is created, but it is empty. There are no errors returned through the UI. It contains none of the tables from the original database.

Other Things Tried: I was able to successfully import the same .bacpac file into other v12 db servers on the same Azure subscription. I also tried deleting the database server and re-creating it, but the same thing happens when I bring it back. In addition, I attempted deleting the db server using powershell, but after recreating it I had the same result.

Ideally I'd like to keep the same db server name and database name so that I do not have to change connection strings in source. Am I missing something?

It looks as though the problem could be a bug (or feature unknown to me) within the azure portal.

As a workaround, I was able to update a local installation of SQL Server Management Studio 2014 to the newest patch and then import from my box using SSMS. I will try to remember to update my response if I get a better response from Microsoft Premier Support.

Cumulative update package 6 for SQL Server 2014: http://support.microsoft.com/en-us/kb/3031047

To perform the import from local SSMS to the Azure v12 Database: Azure SQL Database Bacpac Local Restore

Did you checked the import/export status in the SQL DB server after ordering bacpac restore? You can do it in the new portal.

Also, I found that one time the restore operation had restored the backup into a database with the .bacpac name and not the name I choose in the portal

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM