azureazure-sql-databasebacpac

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 to a local SQL Server instance. I came across the DacImportExportCli tool but couldn't find an example of a local restore.

Also if anyone has written a script that does this (so it can be scheduled) that would be awesome.


Solution

  • This can be done simply through SQL Server Management Studio 2012

    1. Right click on the Connection > Databases node and select "Import Data-tier application..."
    2. Select "Next" on the introduction step.
    3. enter image description here
    4. Browse, or connect to a storage account where backups are kept.