故障排除:适用于 Azure SQL 数据库的 Azure Synapse Link 和 Microsoft Entra 用户模拟

本文是适用于 Azure SQL 数据库的 Azure Synapse Link 和 Microsoft Entra 用户模拟的故障排除指南。 本文仅适用于 Azure SQL 数据库中的数据库。

症状

如果使用连接到 Microsoft Entra ID 的登录名创建数据库,然后尝试执行使用任何 SQL 身份验证主体登录的 Azure Synapse Link 数据库操作,则会因模拟失败而收到错误消息。 以下示例错误都是同一问题的症状。

数据库操作 示例错误
sp_change_feed_enable_db、sp_change_feed_disable_db The error/state returned was 33171/1: 'Only active directory users can impersonate other active directory users.'. Use the action and error to determine the cause of the failure and resubmit the request.
还原已启用 Azure Synapse Link 的数据库 Non retriable error occurred while restoring backup with index 11 - 22729 Could not remove the metadata. The failure occurred when executing the command 'sp_MSchange_feed_ddl_database_triggers 'drop''. The error/state returned was 33171/1: 'Only active directory users can impersonate other active directory users.'. Use the action and error to determine the cause of the failure and resubmit the request. RESTORE DATABASE successfully processed 0 pages in 0.751 seconds (0.000 MB/sec).
还原空白数据库,然后启用 Azure Synapse Link The error returned was 33171: 'Only active directory users can impersonate other active directory users.'. Use the action and error to determine the cause of the failure and resubmit the request.

决议

使用 Microsoft Entra 数据库主体登录到 Azure SQL 数据库。 它不必与创建数据库的 Microsoft Entra 帐户相同。

另请参阅

后续步骤