首页 > 代码库 > SQL Server 2012 The report server cannot open a connection to the report server database

SQL Server 2012 The report server cannot open a connection to the report server database

案例环境:

       操作系统版本:    Windows Server 2012 R2 Standard

       数据库版本  :    SQL SERVER 2012 SP2


案例介绍:

        今天进入一台新安装的SQL Server服务器的Reporting Service管理界面时,出现如下错误信息

The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable) Get Online Help

clipboard

 

最终发现是因为SQL Server安装过程中,勾选了Reporting Service的 ”Install but do not configure“,在使用Reporting Service之前必须先配置报表服务。在命令窗口执行下面命令(对应的账号、密码根据具体环境情况替换)即可

rsconfig -c -s <SQLSERVERNAME> -d reportserver -a Windows -u <MYDOMAIN\MYACCOUNT> -p <PASSWORD>

    具体可以查看MSDN关于"rsconfig 实用工具 (SSRS)"介绍 执行完命令后,进入管理界面又出现下面错误

The report server cannot decrypt the symmetric key that is used to access sensitive or encrypted data in a report server database. You must either restore a backup key or delete all encrypted content. (rsReportServerDisabled) Get Online Help Keyset does not exist (Exception from HRESULT: 0x80090016)

 

报表服务器无法对用来访问报表服务器数据库中的敏感或加密数据的对称密钥进行解密。必须还原备份密钥或删除所有加密的内容,然后重新启动该服务。

执行步骤:

    Step 1: 打开Reporting Services配置管理器,进入“加密密钥”选项。

    Step 2: 点击“删除”按钮删除加密内容

    Step 3: 点击“更改”按钮

    Step 4: 重启报表服务,问题解决。

clipboard[1]

SQL Server 2012 The report server cannot open a connection to the report server database