【问题标题】:Azure SQL Server with Azure AD with NodeJsAzure SQL Server 和 Azure AD 和 NodeJs
【发布时间】:2017-07-12 16:39:26
【问题描述】:

我需要使用Azure Active Directory查询Azure SQL Server,我试过mssql、tedioos、odbc npm的

我总是遇到同样的错误:

无法打开登录请求的服务器 {server}。

登录失败

如何解决这个问题?

【问题讨论】:

  • 您确定该 SQL 服务器的客户端 IP 在 Azure 中已列入白名单,并且已启用连接加密吗?
  • yes marc,ip 被列入白名单并且 encrypt=yes

标签: sql-server node.js azure active-directory


【解决方案1】:

其实mssql使用tedious作为TDS驱动,目前tedious不支持Azure Active Directory Authentication。该问题已报告here

所以,你需要切换到C# to connect Azure SQL Database with Azure AD identity

【讨论】:

  • 我需要在 nodeJs 中实现这一点,我发现这个 npm 边缘 (npmjs.com/package/edge) 在 node 中使用 c# 代码但我不成功,它说缺少程序集引用,如果可能的话建议我.. ?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-06
  • 2021-02-01
  • 1970-01-01
  • 2012-06-11
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多