Reader small image

You're reading from  Professional Azure SQL Database Administration

Product typeBook
Published inJul 2018
Reading LevelBeginner
PublisherPackt
ISBN-139781789538854
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Ahmad Osama
Ahmad Osama
author image
Ahmad Osama

Ahmad Osama works for Pitney Bowes Pvt. Ltd. as a technical architect and is a former Microsoft Data Platform MVP. In his day job, he works on developing and maintaining high performant, on-premises and cloud SQL Server OLTP environments as well as deployment and automating tasks using PowerShell. When not working, Ahmad blogs at DataPlatformLabs and can be found glued to his Xbox.
Read more about Ahmad Osama

Right arrow

Chapter 4. Restoring an Azure SQL Database

Azure SQL Database has the following restore options:

  • Point-in-Time restore

  • Restore a deleted database

  • Geo-Restore a database

  • Restore a database from Azure Vault

  • Import a BACPAC

Figure 4.1: Types of Restore

The restore can be performed using the Azure portal, PowerShell, Azure CLI, or Azure SDK.

This chapter teaches you the differences between the multiple restore types and how to perform a restore.

By the end of this chapter, you will be able to:

  • Use Point-in-Time restore to recover from unexpected data modifications

  • Restore a deleted database using the Azure portal

  • Learn about using Geo-Restore on a database

  • Restore an Azure SQL Database by importing BACPAC

Restore Types


This section discusses the different types of restore available in Azure SQL Database.

Point-In-Time Restore

Point-In-Time Restore (PITR) isn't new in the world of SQL Server. On-premises SQL servers allow you to restore a database to a particular point in time by specifying the point in time option when restoring the database using the restore command.

As you know, the restore command isn't supported in Azure SQL Database, but the PITR can be performed using the Azure portal, PowerShell, Azure CLI, or Azure SDK. The PITR uses the automatic Full and Log backup.

The SQL Database can be restored at any time within the retention period, which is a maximum of up to 35 days.

The database can only be restored on the same Azure SQL Server as the original database with a different name. If you are restoring a database using PITR to recover from a corruption issue and wish to use the restored database as the production database, you will have to rename the database accordingly...

Summary


Restoring an Azure SQL Database is different from restoring an on-premises SQL Server Database. In this chapter, you learned about the following restore options:

  1. Point-In-Time Restore

  2. Restore a deleted database

  3. Geo-Restore a database

  4. Restore a database from Azure Vault

  5. Import a BACPAC

Each of these options can be leveraged in different scenarios. For example, a Point-In-Time restore will help you recover from a corrupt database or accidental deletes, whereas importing a BACPAC helps you set up a development environment with the same schema and data across development, testing, and integration.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Professional Azure SQL Database Administration
Published in: Jul 2018Publisher: PacktISBN-13: 9781789538854
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Author (1)

author image
Ahmad Osama

Ahmad Osama works for Pitney Bowes Pvt. Ltd. as a technical architect and is a former Microsoft Data Platform MVP. In his day job, he works on developing and maintaining high performant, on-premises and cloud SQL Server OLTP environments as well as deployment and automating tasks using PowerShell. When not working, Ahmad blogs at DataPlatformLabs and can be found glued to his Xbox.
Read more about Ahmad Osama