问题
SQL Server 2017刚刚发布,在大多数版本中,您需要注意一些更改。SQL Server 2017中的更改之一是SQL Server Reporting Services(SSRS)安装不属于常规SQL Server安装。在本技巧中,我们将探索如何在SQL Server 2017中安装和配置SSRS。
解
SQL Server 2017于10月发布,其中包含对先前SQL Server版本的许多新增强功能。在SQL Server 2016之前,SSRS安装是常规SQL Server安装的一部分,在常规SQL Server安装中,我们必须从功能窗格中选择Reporting Services,然后安装并配置SSRS。
对于SQL Server 2017,当我们从媒体启动SQL Server安装程序时,SQL Server安装中心提供了一个单独的选项:安装SQL Server Reporting Services。这基本上是一个超链接,可启动下载页面,该下载页面提供了用于安装SQL Server Reporting Services的链接。
![SQL Server安装中心](https://www.mssqltips.com/tipimages2/5237_Capture0.jpg)
如果我们通过单击“ 新建SQL Server独立安装”来执行常规SQL Server安装或向现有安装中添加功能,则可以在下面看到实例功能列表中未包括Reporting Services 。 但是,“实例功能”上方有一个链接 正在寻找Reporting Services?从网上下载。
![SQL Server安装中心功能窗格](https://www.mssqltips.com/tipimages2/5237_Capture0a.jpg)
单击链接后,它将带我们到SQL Server Reporting Services的下载页面,如下所示。
![SQL Server Reporting Services下载页面](https://www.mssqltips.com/tipimages2/5237_Capture0b.jpg)
这将下载SQLServerReportingServices.exe,这是SSRS的非常小的安装设置。
![SQL Server Reporting Services安装程序属性页](https://www.mssqltips.com/tipimages2/5237_Capture0c.jpg)
与以前的SQL Server版本相比,此SSRS 2017安装程序较小且易于完成。如果我们已经安装了SQL Server数据库引擎,则只需几分钟即可下载并安装Reporting Services。此安装程序特定于Reporting Services,因此它允许您安装最新版本的Reporting Services,而不会影响其他SQL Server数据库功能。
安装SQL Server 2017 Reporting Services
下载完SQLServerReportingServices.exe之后,单击安装文件开始安装过程。这将启动设置过程,如下所示。
![SQL Server Reporting Services下载页面](https://www.mssqltips.com/tipimages2/5237_Capture1.jpg)
此安装程序显示SQL Server Reporting Services的发行版本。例如,在上面,您可以查看Microsoft SQL Server Reporting Services(2017年10月)。
安装开始时,我们可以选择从下拉列表中选择要安装的版本。
![SQL Server Reporting Services选择版本-下拉列表](https://www.mssqltips.com/tipimages2/5237_Capture1.jpg)
![SQL Server Reporting Services选择一个版本](https://www.mssqltips.com/tipimages2/5237_Capture2.jpg)
从此列表中,我们可以选择以下版本:
- 评估(180天后过期)
- 开发者
- 表达
要在生产环境中运行SSRS 2017,我们需要在安装过程中输入SQL Server 2017产品密钥。为此,请单击输入产品密钥。
![SQL Server Reporting Services产品密钥](https://www.mssqltips.com/tipimages2/5237_Capture1a.jpg)
对于我的安装,我选择了评估版。单击 下一步将使您查看并接受许可条款。
![SQL Server Reporting Services产品密钥](https://www.mssqltips.com/tipimages2/5237_Capture3.jpg)
接受许可条款后,单击“ 下一步”。下一个屏幕显示您将在此服务器或单独的服务器上需要数据库引擎实例作为报表服务器数据库。由于这是仅用于SSRS的轻量级安装,因此它将仅安装Reporting Services。
![SQL Server Reporting Services-仅安装报告服务](https://www.mssqltips.com/tipimages2/5237_Capture4.jpg)
它还包含一个链接,以检查受支持的数据库引擎版本。单击下一步以指定安装位置。默认情况下,它将位于C: Program Files Microsoft SQL Server Reporting Services中。
![SQL Server Reporting Services-安装报告服务目录](https://www.mssqltips.com/tipimages2/5237_Capture5.jpg)
单击“ 下一步”开始安装SQL Server Reporting Services,这非常快。
![SQL Server Reporting Services-安装报告服务](https://www.mssqltips.com/tipimages2/5237_Capture6.jpg)
设置完成后,它将为Reporting Services安装所有必需的安装文件,并提供手动配置报告服务器的选项。基本上,这将启动报表服务器配置管理器。
SQL Server Reporting Services 2017配置
一旦安装了SQL Server Reporting Services,就需要配置报表服务器。单击配置报表服务器,启动报表服务器配置管理器以连接到特定的SSRS实例。需要注意的一件事是,报表服务器实例名称显示为SSRS,而在先前版本中,它显示为RSServer。
![SQL Server Reporting Services-配置报表服务器](https://www.mssqltips.com/tipimages2/5237_Capture8.jpg)
连接到SSRS实例后,我们将看到一个基本的摘要页面,其中显示了Reporting Service实例ID,版本,产品版本,Report Service状态等。由于没有配置,Report Server数据库名称和Report Server模式显示为空白。已经完成了。
![SQL Server Reporting Services-配置报告服务器摘要页面](https://www.mssqltips.com/tipimages2/5237_Capture9.jpg)
要配置报表服务器数据库,请单击左侧的数据库。
![SQL Server Reporting Services-配置报表服务器-数据库配置](https://www.mssqltips.com/tipimages2/5237_Capture10.jpg)
单击更改数据库进行配置。它会打开“ 报表服务器数据库配置向导”。
![SQL Server Reporting Services-配置报表服务器-Report Server数据库配置向导](https://www.mssqltips.com/tipimages2/5237_Capture11.jpg)
我想设置一个新的报表服务器数据库,因此单击“创建新的报表服务器数据库”。如果要使用现有数据库,请选择选择一个现有报表服务器数据库。
如果需要进行SQL身份验证,我们需要提供服务器名称,身份验证类型(Windows / SQL)和凭据,然后单击“ 测试连接” 以检查连接状态。
![SQL Server Reporting Services-配置报表服务器-Report Server数据库配置向导-提供服务器详细信息](https://www.mssqltips.com/tipimages2/5237_Capture12.jpg)
单击下一步,输入数据库名称,然后选择用于运行SQL脚本的语言。
![SQL Server Reporting Services-配置报表服务器-Report Server数据库配置向导-输入数据库名称并选择用于运行SQL脚本的语言](https://www.mssqltips.com/tipimages2/5237_Capture13.jpg)
在下一页上,指定报表服务器将用于连接到报表服务器数据库的现有帐户的凭据。
![SQL Server Reporting Services-配置报表服务器-Report Server数据库配置向导-输入凭据](https://www.mssqltips.com/tipimages2/5237_Capture14.jpg)
下一页显示“报表服务器数据库配置向导”的摘要。验证配置,然后单击“ 下一步”开始配置。
![SQL Server Reporting Services-配置报表服务器-报表服务器数据库配置向导摘要](https://www.mssqltips.com/tipimages2/5237_Capture16.jpg)
成功完成所有步骤后,它将重新启动Reporting Service。
![SQL Server Reporting Services-配置报表服务器-Report Server数据库配置向导进度](https://www.mssqltips.com/tipimages2/5237_Capture17.jpg)
配置后,这就是Report Server Configuration Manager的外观。
![SQL Server报告服务-重新启动报告服务](https://www.mssqltips.com/tipimages2/5237_Capture18.jpg)
现在数据库配置已完成,我们需要配置用于访问报表服务器的URL。为此,请 从左侧菜单中单击Web服务URL。
![SQL Server报告服务-配置报告服务器-Web服务URL](https://www.mssqltips.com/tipimages2/5237_Capture19.jpg)
指定报表服务器Web服务虚拟目录名称,然后单击Apply。默认情况下,Report Server Web服务虚拟目录名称为ReportServer。
![SQL Server Reporting Services-报表服务器Web服务虚拟目录名称](https://www.mssqltips.com/tipimages2/5237_Capture20.jpg)
如上结果部分所示,这将通过创建虚拟目录来应用配置并重新启动Reporting Services。
同样,我们需要配置一个URL来访问Web Portal URL。为此,请从左侧菜单中单击Web Portal URL,然后指定虚拟目录名称,然后单击“ 应用”以接受更改。
![SQL Server Reporting Services-Web门户URL](https://www.mssqltips.com/tipimages2/5237_Capture21.jpg)
现在,SQL Server Reporting Service配置已完成,我们可以配置和发布SSRS报告。
有关SQL Server Reporting Services 2017的事实
SQL Server配置管理器用于管理与SQL Server相关的服务(即数据库引擎,Analysis Services,Integration Services等)。在SQL Server 2016之前,还可以从此处以及从Reporting Services配置管理器管理Reporting Services。在SQL Server 2017中,Reporting Services不属于SQL Server配置管理器。
但是,如果我们运行services.msc,则可以在服务中找到它。
![SQL Server报告服务-services.msc](https://www.mssqltips.com/tipimages2/5237_Capture22.jpg)
现在,SSRS 2017也与SQL Server目录完全分开。以前,Reporting Services目录曾经位于C: Program Files Microsoft SQL Server MSRS13.SQL2016 Reporting Services中。现在是C: Program Files Microsoft SQL Server Reporting Services。
![SQL Server Reporting Services目录级别更改](https://www.mssqltips.com/tipimages2/5237_Capture23.jpg)