Azure SQL database point in time restore.

Alina Onoprienko 20 Reputation points
2024-02-18T10:03:23.9833333+00:00

I have a Basic Pay-as-you-go plan with Azure and one SQL database. I need to restore the data for just one of the tables. I only see an option to restore the whole database as a brand-new database with a monthly fee. Is there a way to get a backup from a certain day as a file and restore it locally on a SQL Server without paying any fees?

Azure Backup
Azure Backup
An Azure backup service that provides built-in management at scale.
1,496 questions
Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. TP 125.8K Reputation points Volunteer Moderator
    2024-02-18T10:35:26.5966667+00:00

    Hi Alina,

    What you can do is restore certain day to a brand-new database, export that database to BACPAC file, delete the brand-new database, download BACPAC file to local machine, import BACPAC to local SQL Server. In this way the new database will not exist for very long (minutes), so you will only be charged a small amount, especially for Basic.

    Please see articles below for how to export to BACPAC and import the BACPAC file.

    Export to a BACPAC file - Azure SQL Database and Azure SQL Managed Instance

    https://learn.microsoft.com/en-us/azure/azure-sql/database/database-export?view=azuresql

    Import a BACPAC File to Create a New User Database

    https://learn.microsoft.com/en-us/sql/relational-databases/data-tier-applications/import-a-bacpac-file-to-create-a-new-user-database?view=sql-server-ver16

    After you are done downloading the BACPAC file you should delete it from the storage account so that charges don't continue to accrue.

    Please click Accept Answer and upvote if the above was helpful. Add a comment below if something is unclear.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.