sql-server - 报表服务器无法连接到其数据库

标签 sql-server reporting-services

我正在尝试配置一个 SSRS 实例,但收效甚微。

我已经在服务器 DWHFRONT 上安装了 SSRS。它在网络服务凭据下运行。在 Reporting Services 配置管理器的数据库选项卡上,我将其设置为使用 DWHBACK 上的数据库,该数据库已成功创建。该连接使用域帐户 DOM\SA_DWH。我已经为 DOM\SA_DWH 添加了到服务器 DWHBACK 的登录名,我可以看到 Reporting Services Manager 添加了对 SSRS 数据库的授权。配置管理器接受这些连接参数。

但是(在设置 URL、虚拟目录等之后)如果我访问 DWHFRONT/Reports/的 URL,我会收到一条错误消息:

The service is not available.

The report server isn’t configured properly. Contact your system administrator to resolve the issue. System administrators: The report server can’t connect to its database because it doesn’t have permission to do so. Use Reporting Services Configuration Manager to update the report server database credentials.

起初我认为这可能是个问题,因为还没有部署到 SSRS 实例。但是,当我尝试部署某些东西时,我在 BIDS 中收到此错误:

The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. ---> Microsoft.ReportingServices.Library.ReportServerDatabaseUnavailableException: The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (Microsoft.ReportingServices.Designer)

最佳答案

  1. 检查 SQL 日志是否有任何错误
  2. 在 SQL Server 上运行 SQL Profile 以捕获任何连接/权限错误
  3. 尝试重新输入域帐户的权限
  4. 检查域帐户是否被禁用/锁定/密码过期
  5. 尝试在连接报表服务器数据库的同一个 AD 帐户下运行 SSRS 服务。
  6. 尝试在两个服务器(协议(protocol)和客户端协议(protocol))上也启用命名管道
  7. 尝试删除加密 key 并重新创建它们。
  8. 尝试另一个域用户并检查所有数据库(ReportServer、ReportServer Temp、msdb)中授予的权限,检查每个数据库中的数据库用户是否映射到有效的 SID)
  9. 尝试为该 AD 帐户授予 SQL Server 系统管理员权限(临时)。
  10. 检查 SSRS 日志是否有任何错误(最好附加它们)。
  11. 检查事件查看器 --> 安全性 --> SQL Server 审核失败

关于sql-server - 报表服务器无法连接到其数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49323102/

相关文章:

javascript - 尝试在 iframe 中显示报告服务报告时 UI 损坏

reporting-services - 通过 Reporting Services 错误部署报表

c# - 哪种 native dotNet 数据类型最适合传递 SQL Server hierarchyId 值?

SQL Server 2008 Express - 安装

sql-server - 检索 SQL 代理作业的特定错误

pdf - 使用 SSRS/ReportViewer 创建 PDF 时字体替换到/从 PDF 的规则?

reporting-services - 在 SSRS 中,当数据标签字体出现在条形图上时,如何有条件地更改图表上数据标签字体的颜色

asp.net - 禁用 ASP.Net ReportViewer 控件上的分页

sql-server - SSDT : "Identifiers must include at least one name (for example, MyTable)"

sql - 如何从sql server中的子元素中删除空命名空间