无法使用以下 SQL 命令或通过 Azure 门户创建数据库副本
创建数据库 mydatabase_copy 作为 mydatabase 的副本;
无法在 Azure SQL Server 上创建数据库副本,没有向导
- 我们知道有一种方法可以创建 bacpac 并恢复它,但这是一个完整的手动过程,并且需要太多时间
- 我们需要一些自动化的方法来实现这一目标。
最佳答案
创建数据库...因为副本在 Managed Instance 中不可用,仅在 SQL Database 中。而是使用 Point-in-time restore
Use point-in-time restore (PITR) to create a database as a copy of another database from some time in the past. This article describes how to do a point-in-time restore of a database in Azure SQL Managed Instance.
Point-in-time restore is useful in recovery scenarios, such as incidents caused by errors, incorrectly loaded data, or deletion of crucial data. You can also use it simply for testing or auditing. Backup files are kept for 7 to 35 days, depending on your database settings.
您可以使用 PowerShell 实现自动化.
关于azure - Azure SQL 托管实例面临的挑战,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72211993/