# SQL Server Reporting Services

**SQL Server Reporting Services**（SSRS）是微软推出的一个基于服务器的报表平台，用于创建、管理和交付以报表定义语言（RDL）定义的分页报表。RDL 是一种 XML 格式，将报表数据与报表布局元素结合在一起。<sup>[1](https://learn.microsoft.com/en-us/openspecs/sql_server_protocols/ms-ssso/b8cd0329-a513-42bc-98fa-16e19836954a)</sup><sup> • </sup><sup>[2](https://learn.microsoft.com/en-us/sql/reporting-services/reports/report-definition-language-ssrs?view=sql-server-ver15)</sup> 它于 2004 年 1 月 27 日随 SQL Server 2000 首次发布，后来成为微软用于运营型、可直接打印报表的主要工具，并为 Power BI 服务中的分页报表提供了报表技术。<sup>[3](https://news.microsoft.com/source/2004/01/27/microsoft-sql-server-2000-reporting-services-is-available-today/)</sup><sup> • </sup><sup>[4](https://learn.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-faq)</sup>

| 关键事实 | 详情 |
|---|---|
| 首次发布 | SQL Server 2000 Reporting Services，2004 年 1 月 27 日发布<sup>[3](https://news.microsoft.com/source/2004/01/27/microsoft-sql-server-2000-reporting-services-is-available-today/)</sup> |
| 报表格式 | RDL，一种以 .rdl 为文件扩展名存储的 XML 报表定义，包含数据源连接、查询、表达式、参数和布局元素<sup>[2](https://learn.microsoft.com/en-us/sql/reporting-services/reports/report-definition-language-ssrs?view=sql-server-ver15)</sup><sup> • </sup><sup>[5](https://learn.microsoft.com/en-us/sql/reporting-services/reports/reporting-services-reports-ssrs?view=sql-server-ver17)</sup> |
| 处理管道 | 编译、处理、呈现；默认呈现格式为 HTML 4.0<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup> |
| 导出格式 | 默认包括 Excel、Word、XML、PDF、TIFF 和 CSV，具体取决于已安装的呈现扩展<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup> |
| 部署模式 | 本机模式（独立服务器或横向扩展场）或 SharePoint 集成模式<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup> |
| 可扩展性 | 基于 .NET Framework 程序集构建的自定义身份验证、数据处理、报表处理、呈现和传递扩展<sup>[7](https://learn.microsoft.com/en-us/sql/reporting-services/extensions/reporting-services-extensions?view=sql-server-ver17)</sup> |
| 新版本终止 | 从 SQL Server 2025 开始，本地报表功能统一归入 Power BI 报表服务器；将不再发布新的 SSRS 版本，SSRS 2022 的支持持续到 2033 年 1 月 11 日<sup>[8](https://learn.microsoft.com/da-dk/sql/reporting-services/reporting-services-consolidation-faq?view=sql-server-ver17)</sup> |

## 用途与报表功能

SSRS 分页报表专为高度格式化、可直接打印的输出而设计：布局可以精确到几分之一英寸或几分之一厘米的尺寸，并可设置页眉、页脚、边距和受控的分页符；数据区域可以以受控方式扩展并溢出到多页。<sup>[9](https://learn.microsoft.com/en-us/power-bi/guidance/report-paginated-or-power-bi)</sup> 这使得该格式适合销售发票等运营型文档——在这类文档中，表格或矩阵必须完整打印出来，而不是在屏幕上滚动查看。<sup>[9](https://learn.microsoft.com/en-us/power-bi/guidance/report-paginated-or-power-bi)</sup>

一份报表定义可以服务于多种用途。报表利用共享数据源来呈现统一版本的事实，以表格、矩阵、图表、仪表、指示器、KPI 和地图来可视化数据，并通过钻取操作、展开/折叠切换、排序按钮、工具提示和参数来支持交互性，让读者可以筛选、分组和排序数据。<sup>[5](https://learn.microsoft.com/en-us/sql/reporting-services/reports/reporting-services-reports-ssrs?view=sql-server-ver17)</sup> 数据源和数据集与报表定义分开管理，因此可以在不更改报表本身的情况下，将报表从测试数据源切换到生产数据源。<sup>[5](https://learn.microsoft.com/en-us/sql/reporting-services/reports/reporting-services-reports-ssrs?view=sql-server-ver17)</sup>

## 体系结构

**报表服务器**是安装了 Reporting Services 实例的计算机。它存储分页报表和移动报表、KPI、共享数据源、共享数据集、计划和订阅，在本机模式下按层次结构文件夹组织，在 [SharePoint](https://www.edgepedia.org/zh/sharepoint) 模式下则存放在 SharePoint 内容库中。<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup> 报表服务器可以作为独立的单台服务器运行，也可以作为横向扩展场运行。<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup> 客户端通过 Web 门户、URL 访问命令、SQL Server Management Studio、报表服务器 Web 服务、WMI 提供程序或脚本来与服务器交互。<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup>

[访问控制](https://www.edgepedia.org/zh/access-control)采用基于角色的安全模型。在本机报表服务器上，文件夹提供导航结构，项级安全性通过文件夹层次结构和权限来实施；默认情况下，子文件夹继承角色分配，除非另行分配了特定角色。<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup> 默认情况下，服务器使用 Windows 身份验证，并通过角色分配来控制对已发布报表的访问。<sup>[5](https://learn.microsoft.com/en-us/sql/reporting-services/reports/reporting-services-reports-ssrs?view=sql-server-ver17)</sup>

## 报表处理阶段

报表运行时，服务器分三步处理它：报表处理、数据处理和呈现。数据处理和报表处理对报表定义进行操作，生成一种内部中间格式，然后再将其呈现为特定的查看格式。<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup> 各阶段如下：<sup>[5](https://learn.microsoft.com/en-us/sql/reporting-services/reports/reporting-services-reports-ssrs?view=sql-server-ver17)</sup>

1. **编译**：计算 .rdl 定义中的表达式，并将编译后的中间格式存储在服务器上。
2. **处理**：运行数据集查询，并将中间格式与数据和布局结合。
3. **呈现**：呈现扩展决定每页能容纳多少信息，并生成分页报表。
4. **导出**（可选）：将报表保存为另一种文件格式。

快照将特定时间点的报表数据与包含布局信息的中间格式一起存储，用于报表历史和缓存。<sup>[6](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)</sup>

## 订阅与传递

订阅按计划传递报表，无需用户主动请求。标准订阅使用固定参数值生成一个报表实例，传递到单个共享文件夹或指定的电子邮件地址。数据驱动订阅从订阅者查询的结果集中获取参数值和传递值，每行生成一次传递，因此单个订阅可以生成许多个性化报表实例并发送到多个目标。<sup>[10](https://learn.microsoft.com/ga-ie/SQL/reporting-services/subscriptions/subscriptions-and-delivery-reporting-services?view=sql-server-ver16)</sup> 传递方式可以是 URL、电子邮件正文或附件，处理由时间驱动的计划或快照更新事件触发。<sup>[10](https://learn.microsoft.com/ga-ie/SQL/reporting-services/subscriptions/subscriptions-and-delivery-reporting-services?view=sql-server-ver16)</sup>

## 可扩展性

该体系结构是模块化的，围绕 .NET Framework 程序集构建。开发者可以编写数据处理扩展（以 .NET 数据提供程序接口的子集为模型），将服务器连接到新的数据源；内置扩展涵盖 SQL Server、OLE DB、Oracle 和 ODBC。<sup>[7](https://learn.microsoft.com/en-us/sql/reporting-services/extensions/reporting-services-extensions?view=sql-server-ver17)</sup><sup> • </sup><sup>[11](https://learn.microsoft.com/en-us/sql/reporting-services/extensions/data-processing/data-processing-extensions-overview?view=sql-server-ver17)</sup> 传递扩展为报表通知增加新的传递机制，呈现扩展可以增加导出格式。报表定义自定义扩展（RDCE）可以在报表定义到达处理引擎之前动态修改它，例如向经理和部门成员显示不同视图，或按语言更改布局。<sup>[7](https://learn.microsoft.com/en-us/sql/reporting-services/extensions/reporting-services-extensions?view=sql-server-ver17)</sup> 用户可以使用哪些扩展在 RSReportServer.config 文件中配置，管理员可以用它来限制报表查看器中提供的导出格式等。<sup>[12](https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/reporting-services/reporting-services-concepts-ssrs.md)</sup>

## 历史与并入 Power BI

Reporting Services 于 2004 年初作为 SQL Server 2000 的附加组件正式发布，定位为一个集成的报表开发、管理和传递环境，可以向 5 到 50,000 个订阅者发送交互式报表。<sup>[3](https://news.microsoft.com/source/2004/01/27/microsoft-sql-server-2000-reporting-services-is-available-today/)</sup><sup> • </sup><sup>[13](https://catalogimages.wiley.com/images/db/pdf/9781119258353.excerpt.pdf)</sup> 它可以从多个来源提取数据，包括微软、Oracle 和 IBM 的数据库，并将报表呈现为 HTML、PDF、XML 或 Excel。<sup>[14](https://www.networkworld.com/article/878922/lan-wan-microsoft-launches-sql-server-reporting-services.html)</sup>

后来的两项变化重塑了该产品的定位。从 SQL Server 2025 开始，微软将其所有本地报表服务统一归入 Power BI 报表服务器（PBIRS）：SSRS 将不再发布任何后续版本，PBIRS 接替成为 SQL Server 的标准本地报表选项，SSRS 2022 仍将获得安全更新支持，直至 2033 年 1 月 11 日。<sup>[8](https://learn.microsoft.com/da-dk/sql/reporting-services/reporting-services-consolidation-faq?view=sql-server-ver17)</sup> 微软将 PBIRS 描述为 SSRS 的超集：它提供 SSRS 的全部功能，并额外支持交互式 Power BI（.pbix）报表、数据建模、视觉交互性和自定义视觉对象，现有的 RDL 报表与之完全兼容。<sup>[8](https://learn.microsoft.com/da-dk/sql/reporting-services/reporting-services-consolidation-faq?view=sql-server-ver17)</sup>

RDL 技术本身在云端延续。Power BI 分页报表基于相同的 RDL 报表技术，在 Power BI Report Builder 中创作，并可与交互式 Power BI 报表一起发布到 Power BI 工作区。<sup>[4](https://learn.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-faq)</sup><sup> • </sup><sup>[9](https://learn.microsoft.com/en-us/power-bi/guidance/report-paginated-or-power-bi)</sup> 拥有现有 SSRS 报表的组织可以将其迁移为 Power BI 中的分页报表，或将其重新开发为 Power BI 报表；对于旨在提供分析体验的报表，建议采用后一种方式。<sup>[9](https://learn.microsoft.com/en-us/power-bi/guidance/report-paginated-or-power-bi)</sup>

## References

1. [Reporting Services, Microsoft Open Specifications (MS-SSSO)](https://learn.microsoft.com/en-us/openspecs/sql_server_protocols/ms-ssso/b8cd0329-a513-42bc-98fa-16e19836954a)
2. [Report Definition Language (SSRS), Microsoft Learn](https://learn.microsoft.com/en-us/sql/reporting-services/reports/report-definition-language-ssrs?view=sql-server-ver15)
3. [Microsoft SQL Server 2000 Reporting Services Is Available Today, Microsoft news (January 27, 2004)](https://news.microsoft.com/source/2004/01/27/microsoft-sql-server-2000-reporting-services-is-available-today/)
4. [Paginated reports in Power BI: FAQ, Microsoft Learn](https://learn.microsoft.com/en-us/power-bi/paginated-reports/paginated-reports-faq)
5. [Reporting Services Reports (SSRS), Microsoft Learn](https://learn.microsoft.com/en-us/sql/reporting-services/reports/reporting-services-reports-ssrs?view=sql-server-ver17)
6. [Reporting Services concepts (SSRS), Microsoft Learn](https://learn.microsoft.com/en-us/sql/reporting-services/reporting-services-concepts-ssrs?view=sql-server-ver17)
7. [Reporting Services extensions, Microsoft Learn](https://learn.microsoft.com/en-us/sql/reporting-services/extensions/reporting-services-extensions?view=sql-server-ver17)
8. [Reporting Services Consolidation FAQ, Microsoft Learn](https://learn.microsoft.com/da-dk/sql/reporting-services/reporting-services-consolidation-faq?view=sql-server-ver17)
9. [When to use paginated reports in Power BI, Microsoft Learn](https://learn.microsoft.com/en-us/power-bi/guidance/report-paginated-or-power-bi)
10. [Subscriptions and delivery (Reporting Services), Microsoft Learn](https://learn.microsoft.com/ga-ie/SQL/reporting-services/subscriptions/subscriptions-and-delivery-reporting-services?view=sql-server-ver16)
11. [Data processing extensions overview, Microsoft Learn](https://learn.microsoft.com/en-us/sql/reporting-services/extensions/data-processing/data-processing-extensions-overview?view=sql-server-ver17)
12. [sql-docs: reporting-services-concepts-ssrs.md, MicrosoftDocs on GitHub](https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/reporting-services/reporting-services-concepts-ssrs.md)
13. [Professional SQL Server 2016 Reporting Services, chapter excerpt, Wiley](https://catalogimages.wiley.com/images/db/pdf/9781119258353.excerpt.pdf)
14. [Microsoft launches SQL Server Reporting Services, Network World (January 27, 2004)](https://www.networkworld.com/article/878922/lan-wan-microsoft-launches-sql-server-reporting-services.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Application software by domain

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/sql-server-reporting-services

English original: https://www.edgepedia.org/sql-server-reporting-services
