是否需要 build/compile SSRS 报告?
Is it necessary to build/compile SSRS reports?
我们有 SSRS 的 2008 R2 本机安装。我通常在一个大型 visual studio 报表服务器项目中开发报表,并通过 SSRS 网站的前端手动上传 .rdl 文件。但是,我注意到您可以构建 debug/release 版本的 .rdl 文件。到目前为止我注意到的唯一区别是编译后的 .rdl 比 "raw" .rdl 大 2KB - 没有注意到性能提升等
有人知道使用原始 .rdl 和编译后的 .rdl 之间的区别吗?
Visual Studio 中没有原始与编译的 rdl。
混淆来自 Visual Studio 中的其他项目类型,因为每个 .NET 开发人员都知道 dll/exe 在编译时使用或不使用 "Optimize code" 是有区别的复选框。
即使术语 "build" 出现在 SSRS 文档中,也更容易认为 RDL 报告未构建(至少在部署之前未构建),因为构建报告与构建报告完全不同构建 .NET 应用程序。
Reports are built before they are published to ensure that only
valid report definitions are published to the report server. Project
configurations include properties for building reports, such as the
folder in which to temporarily store the built reports, and how to
handle build issues. The configurations also have properties that you
use to specify the location and version of the report server, the
folders on the report server.
来源:Publishing Reports to a Report Server
这里,built应该看成是合法性校验。
编辑 2017-10-25:但不仅如此,请参阅下面来自 Michael Edenfield 的 。
什么时候编制报告?
当您查看报告时。
Stages of Report Processing
When you create a report, you define a report definition file (.rdl)
in XML format. This file contains all the information that is needed
to combine report data and report layout by the report processor. When
you view a report, the report progresses through the following stages:
Compile. Evaluate expressions in the report definition and store the compiled intermediate format internally on the report server.
Process. Run dataset queries, and combine intermediate format with data and layout.
Render. Send processed report to a rendering extension to determine how much information fits on each page and create the paged
report.
Export (optional). Export the report to a different file format.
来源:Reporting Services Reports (SSRS)
下图显示了报告处理的概览:
Compiled report and intermediate report format
The report that uses evaluated expressions, parameters and parameter properties evaluated.
来源:Reporting Services Concepts (SSRS)
Debug/Release配置有什么用?
在solution/project配置中,您可以存储部署设置,例如目标服务器URL、报告路径等。
您可以使用标准的,例如使用 Debug 将报告发布到测试 SSRS 服务器,并使用 Release 将报告发布到生产 SSRS 服务器。
SQL Server Data Tools (SSDT) provides project configurations for
managing report publication. The configuration specifies the location
of the report server, the version of SQL Server Reporting Services
installed on the report server, whether the data sources published to
the report server are overwritten and so forth. In addition to using
the configurations that SQL Server Data Tools (SSDT) provides, you can
create additional configurations.
是的,因为如果你不这样做,当你的开发环境比你生锈的旧 SSRS 服务器更新时,你会 运行 遇到问题。
bin 文件夹副本降级为与项目属性中指定的模式相匹配的模式。
这完全是疯了,因为它确实应该 首先不升级报告,但期望 SSRS 做任何明智的事情就像期望猪会飞。
损失时间:~1 周。我也曾经从源文件夹部署过。
我们有 SSRS 的 2008 R2 本机安装。我通常在一个大型 visual studio 报表服务器项目中开发报表,并通过 SSRS 网站的前端手动上传 .rdl 文件。但是,我注意到您可以构建 debug/release 版本的 .rdl 文件。到目前为止我注意到的唯一区别是编译后的 .rdl 比 "raw" .rdl 大 2KB - 没有注意到性能提升等
有人知道使用原始 .rdl 和编译后的 .rdl 之间的区别吗?
Visual Studio 中没有原始与编译的 rdl。
混淆来自 Visual Studio 中的其他项目类型,因为每个 .NET 开发人员都知道 dll/exe 在编译时使用或不使用 "Optimize code" 是有区别的复选框。
即使术语 "build" 出现在 SSRS 文档中,也更容易认为 RDL 报告未构建(至少在部署之前未构建),因为构建报告与构建报告完全不同构建 .NET 应用程序。
Reports are built before they are published to ensure that only valid report definitions are published to the report server. Project configurations include properties for building reports, such as the folder in which to temporarily store the built reports, and how to handle build issues. The configurations also have properties that you use to specify the location and version of the report server, the folders on the report server.
来源:Publishing Reports to a Report Server
这里,built应该看成是合法性校验。
编辑 2017-10-25:但不仅如此,请参阅下面来自 Michael Edenfield 的
什么时候编制报告?
当您查看报告时。
Stages of Report Processing
When you create a report, you define a report definition file (.rdl) in XML format. This file contains all the information that is needed to combine report data and report layout by the report processor. When you view a report, the report progresses through the following stages:
Compile. Evaluate expressions in the report definition and store the compiled intermediate format internally on the report server.
Process. Run dataset queries, and combine intermediate format with data and layout.
Render. Send processed report to a rendering extension to determine how much information fits on each page and create the paged report.
Export (optional). Export the report to a different file format.
来源:Reporting Services Reports (SSRS)
下图显示了报告处理的概览:
Compiled report and intermediate report format
The report that uses evaluated expressions, parameters and parameter properties evaluated.
来源:Reporting Services Concepts (SSRS)
Debug/Release配置有什么用?
在solution/project配置中,您可以存储部署设置,例如目标服务器URL、报告路径等。
您可以使用标准的,例如使用 Debug 将报告发布到测试 SSRS 服务器,并使用 Release 将报告发布到生产 SSRS 服务器。
SQL Server Data Tools (SSDT) provides project configurations for managing report publication. The configuration specifies the location of the report server, the version of SQL Server Reporting Services installed on the report server, whether the data sources published to the report server are overwritten and so forth. In addition to using the configurations that SQL Server Data Tools (SSDT) provides, you can create additional configurations.
是的,因为如果你不这样做,当你的开发环境比你生锈的旧 SSRS 服务器更新时,你会 运行 遇到问题。
bin 文件夹副本降级为与项目属性中指定的模式相匹配的模式。
这完全是疯了,因为它确实应该 首先不升级报告,但期望 SSRS 做任何明智的事情就像期望猪会飞。
损失时间:~1 周。我也曾经从源文件夹部署过。