Hi @Allen Zhan,
有具体的报错信息吗?
Active Directory Password
身份验证模式支持使用本机或联合 Microsoft Entra 用户的 Microsoft Entra ID 对 Azure 数据源进行身份验证。当您使用此模式时,必须在连接字符串中提供用户凭据。以下示例展示了如何使用Active Directory Password
身份验证。
// Use your own server, database, user ID, and password.
另外我发现大家在用python去连接Azure SQL Server,使用active directory password模式的时候都会选择ODBC Driver。不知道是不是python自己driver的限制。
Regards,
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.