How to restore a On-premises SQL SERVER DB to Azure SQL Data Base

Bharathi 46 Reputation points
2021-12-07T00:22:46.457+00:00

I want to restore my SQL SERVER DB from local system to Azure SQL DB.

The DB is exist in my local system , I will take the backup of the DB.

Now what are the steps do I need to follow to restore this DB on Azure SQL DB

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 27,337 Reputation points Microsoft Employee
    2021-12-07T05:17:50.943+00:00

    Hi, @Bharathi Welcome to Microsoft Q&A, Thanks for posting your question,
    Thanks, @Nandan Hegde for your contribution and providing the documentation.

    Here are the steps where you can also follow using DAC package
    Moving schema from on-Premise SQL database to Azure SQL database

    select extract Data-tier Application as shown
    155490-image.png

    Click on next and Provide the location where the file should be placed,155551-image.png

    Click on next under validation and summary, Build Package screen is displayed click on finish once done

    155489-image.png
    Once the dacpac file is created. connect to Azure SQL Db from SSMS, right-click “Databases” and select “Deploy Data-tier Application”.
    155506-image.png
    Click on next on Deploy Data- tier Application
    Select Package screen is displayed browse the path where dacpac file created155532-image.png
    Update configuration screen is displayed click Next155467-image.png
    Click next on the summary, Deploy DAC screen is displayed155562-image.png
    Click Finish
    It is now completed and we should see the database in Azure,
    155572-image.png

    Please let us know if you face any issues or need more information.

    Regards
    Geetha


1 additional answer

Sort by: Most helpful
  1. Nandan Hegde 29,886 Reputation points MVP
    2021-12-07T04:15:02.78+00:00

    Hey,
    The below link provides step by step details for the same:
    sqlshack.com/migrate-an-on-premises-sql-server-database-to-the-azure-sql-database/