sql-server - 从本地 SQL Server SSRS 连接到在线 SQL Azure DB

标签 sql-server azure reporting-services connection-string ssrs-2019

我尝试从本地 SQL Server SSRS 2019 连接到在线 Microsoft Azure SQL 数据库。

当我从本地 DBMS 连接到在线数据库时,它工作正常。 然而,一切都通过 MFA 得到保障。

不幸的是,我无法获得正确的连接字符串,无法从 SSRS 2019 连接到我的 Azure SQL DB。

以下设置:

与 DBMS 的本地连接 - 工作正常

enter image description here

与 Power BI Report Builder 的本地连接 - 工作正常 enter image description here

SQL Server Reporting Services 的共享连接 - 错误:

类型: 微软Azure SQL数据库

身份验证: Azure Active Directory - 与 MFA 通用

连接字符串: 服务器=tcp:myDomain.dynamics.com,1234;身份验证=Active Directory集成;数据库=myDb;

enter image description here

错误: 已成功与服务器建立连接,但在登录过程中发生错误。 (提供程序:TCP 提供程序,错误:0 - 指定的网络名称不再可用。)

您知道如何修复连接字符串以连接到 Azure SQL DB 吗?

您知道将用户名和密码放入连接字符串的何处吗?

我是否应该尝试仅针对 SSRS 获取不带 MFA 的数据库连接?

您将如何解决这个问题?

最佳答案

可以从本地 SSRS 连接到 Azure DB:

  • 没有 MFA 的服务用户
  • 或 SSRS 本地服务器位于受信任位置
  • 对于 Dataverse,请使用 Active Directory 密码身份验证
  • 对于 Azure SQL Server,您也可以使用 SQL 身份验证

如果您遇到同样的问题,请引用: discussion azure forum

关于sql-server - 从本地 SQL Server SSRS 连接到在线 SQL Azure DB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73051259/

相关文章:

python - 如何使用 Azure Blob 存储挂载数据?

reporting-services - 无法预览报告

c# - 以编程方式查看 CRM 报告而无需访问 Reporting Server

sql-server - 从 SQL Server 2005 DB 选择数据到 Azure 中的 Azure SQL 临时数据库表

azure - 使用 Visual Studio Online 进行 SlowCheetah 转换失败

sql-server - 将 ntext/text 转换为 hex/binary/varbinary

php - 如何使用 Azure PHP SDK 通过分块来上传大块 blob?

reporting-services - 如何在没有服务器或 UI 的情况下从嵌入式报表定义生成 PDF?

mysql - SQL 左连接条件

c# - 为什么 SqlDataReader to DataTable 只有在我使用单独的字段时才有效?