Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Professional Azure SQL Managed Database Administration

You're reading from   Professional Azure SQL Managed Database Administration Efficiently manage and modernize data in the cloud using Azure SQL

Arrow left icon
Product type Paperback
Published in Mar 2021
Publisher Packt
ISBN-13 9781801076524
Length 724 pages
Edition 3rd Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Ahmad Osama Ahmad Osama
Author Profile Icon Ahmad Osama
Ahmad Osama
Shashikant Shakya Shashikant Shakya
Author Profile Icon Shashikant Shakya
Shashikant Shakya
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Introduction to Azure SQL managed databases 2. Service tiers FREE CHAPTER 3. Migration 4. Backups 5. Restoration 6. Security 7. Scalability 8. Elastic and instance pools 9. High availability and disaster recovery 10. Monitoring and tuning 11. Database features 12. App modernization Index

Activity: Performing Point-In-Time restore for SQL Managed Instance with PowerShell

In this two-part activity, we will be performing a point-in-time restore of a database in SQL Managed Instance using PowerShell and then a cross-instance restore of a database (from one SQL Managed Instance to another SQL Managed Instance).

Part 1: Restoring a database to a point in time using PowerShell on one managed instance

To perform a point-in-time restore operation on the same SQL Managed Instance using PowerShell commands, please follow these steps:

  1. Press Windows key + R to open the Run dialog box. In the Run dialog box, type powershell ise to open a new PowerShell editor window.
  2. In PowerShell, click File from the top menu and then select New to create a new PowerShell script file:
    Creating a new PowerShell script

    Figure 5.44: Creating a new PowerShell script

  3. In the new PowerShell script file, copy in the code from the following step.
  4. Define the PowerShell script parameters. The parameters are self...
lock icon The rest of the chapter is locked
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.
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 $19.99/month. Cancel anytime