无法将数据库部署到 Microsoft Azure SQL 数据库

问题描述 投票:0回答:2

使用 SSMS 将本地数据库部署到 Azure SQL 数据库时,使用“将数据库部署到 Microsoft Azure SQL 数据库”功能,我们收到以下错误:

One or more unsupported elements were found in the schema used as part of a data package.
Error SQL71627: The element User: [xxx\SSO UAT Administrators] has property AuthenticationType set to a value that is not supported in Microsoft Azure SQL Database v12.
Error SQL71627: The element Login: [xxx\SSO UAT Administrators] has property IsMappedToWindowsLogin set to a value that is not supported in Microsoft Azure SQL Database v12.
 (Microsoft.SqlServer.Dac)

有人可以告诉我是否有办法解决这个问题吗?

azure-sql-database ssms
2个回答
0
投票
The element User: [xxx\SSO UAT Administrators] has property AuthenticationType set to a value that is not supported in Microsoft Azure SQL Database v12. 
Error SQL71627: The element Login: [xxx\SSO UAT Administrators] has property IsMappedToWindowsLogin set to a value that is not supported in Microsoft Azure SQL Database v12.

Azure SQL 数据库不支持 Windows 身份验证。它仅支持 SQL Server 身份验证和 Microsoft Enterprise ID 身份验证。但是,上述用户被映射到Windows身份验证,这可能是错误的原因。如果要将本地 SQL 数据库部署到 Azure SQL 数据库,请删除映射到 Windows 身份验证的用户,如下所示:

enter image description here

然后再次尝试部署。部署后,在数据库中创建包含的用户,以允许用户登录到您的 SQL 数据库。

或者,您可以使用 Azure 数据迁移助手 (DMA) 进行迁移项目,这将使该过程变得更加容易。 DMA 评估您的数据库并让您轻松迁移。您可以从这里下载该工具。使用 DMA,您可以取消选中与 Azure SQL (SQL71561) 不兼容的任何登录名 (SQL71627) 或视图,然后继续迁移。

欲了解更多信息,您可以参考以下链接:


0
投票

请忘记用于将数据库迁移到 Azure SQL 数据库的 SSMS。使用 Microsoft Data Migration Assistant (DMA) 来执行此任务。此工具是迁移到 Azure SQL 数据库的最简单方法。它首先执行评估,然后将数据库迁移到 Azure。 如果 DMA 发现任何不兼容问题,请解决它们并使用 DMA 进行迁移,

© www.soinside.com 2019 - 2024. All rights reserved.