coy 的程序人生

有鸟止南方之阜,三年不翅,不飞不鸣
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

SQL 2000 Reporting Services 常见错误及解决办法

Posted on 2007-11-25 11:19  coy  阅读(1400)  评论(0编辑  收藏  举报

1. 报表服务器无法解密用于访问报表服务器数据库中的敏感数据或加密数据的对称密钥

rskeymgmt -d
rsconfig -d ReportServer -u sa -p password -e foobar

如果提示“未初始化报表服务器安装”,可以通过下面的两步解决:
1. 删除RS数据库中的加密数据
rskeymgmt -d
2. 手动激活Report Services
RSActivate.exe -c "c:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\RSReportServer.config" -t

2. The report server cannot open a connection to the report server database
服务器的名称的变更会导致出现这种错误。这时候只要重新设置一下数据库就可以了。
在命令行执行下面的命令:
rsconfig -c -slocalhost -dReportServer -aWindows

其中:
localhost是机器名称,ReportServer是报表数据库的名称,Windows表示用集成验证。

3. The underlying connection was closed: Unable to connect to the remote server.
这种错误一般是因为Reporting Services管理端配置文件中指定的管理端路径不正确。导致配置不正确可能是机器名改变,端口改变,或IIS中把http访问方式改成了https安全访问方式。
解决的办法如下:
打开文件管理端配置文件:
C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportManager\RSWebApplication.config
找到URL,如 http://servername/ReportServer,改成正确的路径,注意是http还是https,端口号是否正确,机器名是否正确。

4. The stream cannot be found. The stream identifier that is provided to an operation cannot be located in the report server database. (rsStreamNotFound)
打开数据库ReportServer的表ConfigurationInfo,修改UseSessionCookies的值为false。然后iisreset即可。