[英]Challenges with Azure SQL Managed Instance
Unable to make a copy of the database using the following SQL command or through the Azure portal无法使用以下 SQL 命令或通过 Azure 门户制作数据库副本
CREATE DATABASE mydatabase_copy AS COPY OF mydatabase;
Unable to make a copy of the database on Azure SQL Server, no wizard is present无法在 Azure SQL 服务器上复制数据库,不存在向导
CREATE DATABASE... AS COPY OF is not available in Managed Instance , only in SQL Database . CREATE DATABASE... AS COPY OF 在托管实例中不可用,仅在SQL 数据库中可用。 Instead use 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.使用时间点还原 (PITR) 将数据库创建为过去某个时间的另一个数据库的副本。 This article describes how to do a point-in-time restore of a database in Azure SQL Managed Instance.本文介绍如何在 Azure SQL 托管实例中对数据库进行时间点还原。
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.备份文件会保留 7 到 35 天,具体取决于您的数据库设置。
Which you can automate with PowerShell .您可以使用PowerShell将其自动化。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.