将数据库导入 Azure SQL 数据库时出错

Error importing database to Azure SQL Database

我已经通过“导出数据层应用程序”创建了本地数据库的备份,并将文件保存在 Azure Blob。

在 Azure 门户中,我选择 SQL 服务器并导入一个新数据库。我 select 从 Blob 备份,并等待很长时间才能创建数据库。一直卡在1%。

40 分钟后,我每次尝试创建数据库时都会收到此消息:

The ImportExport operation with Request Id 'f6743e06-592d-4531-b319-4297b345f744e' failed due to 'Could not import package. Warning SQL0: A project which specifies SQL Server 2019 or Azure SQL Database Managed Instance as the target platform may experience compatibility issues with Microsoft Azure SQL Database v12. Warning SQL72012: The object [data_0] exists in the target, but it will not be dropped even though you selected the 'Generate drop statements for objects that are in the target database but that are not in the source' check box. Warning SQL72012: The object [log] exists in the target, but '.

这非常令人沮丧,它只是一个只有 25 兆重量的表(没有数据)的数据库。我按照每一个教程来完成这项工作,每一步,无论我选择哪个数据库名称,我总是会遇到这个错误。

我们将不胜感激。

谢谢。

无需完成创建 bacpac 的过程,而是将其上传到 Azure 存储帐户,最后将其导入 Azure SQL 失败,您可以轻松迁移 SQL服务器使用 Azure Data Migration Assistant (DMA).

您只需创建一个空的 Azure SQL 数据库,DMA 会完成剩下的工作。您可以从 here.

下载