TL; DR。
复制步骤,备份您的 C:\Program Files\Microsoft SQL Server\MSRS13.SSRS\Reporting Services\ReportServer\RsReportServer.config
运行以下命令以更新SSRS的配置中的连接字符串:
C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn>rsconfig -c -s <ServerName> -i <instanceNameIfNotDefault> -d "reportserver$ssrs" -a SQL -u sa -p "YourSAPassword" -t
Run Code Online (Sandbox Code Playgroud)
现在浏览到SSRS网站,它不起作用!要修复它,请还原您的配置文件或通过SSRS GUI工具运行,它可以正常工作!
RsConfig实用程序如何工作?
背景信息
在Windows 2016 Server上安装SSRS并还原2个数据库后,我需要更改SSRS配置文件中的连接字符串以指向新的SQL Server名称/实例。
问题
当我尝试C:\Program Files\Microsoft SQL Server\MSRS13.SSRS\Reporting Services\ReportServer\RsReportServer.config使用RSConfig实用程序更改文件中的加密连接字符串时:
C:\Program Files (x86)\Microsoft SQL Server\130\Tools\Binn>rsconfig -c -s Server0012 -i SSRS -d "reportserver$ssrs" -a SQL -u sa -p "P@ssw0rd!" -t
Run Code Online (Sandbox Code Playgroud)
它更改RsReportServer.config中的Dsn连接字符串。
之前: <Dsn> AQAAANCMnd8BFdERjHoAwE / Cl + sBAAAAE + tJc / 4Vs0a0fdH0tCY8kgQAAAAiAAAAUgBlAHAAbwByAHQAaQBuAGcAIABTAGUAcgB2AGUAcgAAABBmAAAAAQAAIAAAAC2BBZF ... 0
之后: <Dsn> …
sql encryption powershell connection-string reporting-services