本文介绍了SSRS 报告版本控制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法来从我的 SSRS 报告中获取版本信息.我有几个环境,希望能够比较在这些环境中部署了哪个报告版本.在 SSIS 中,这很容易,因为每个 SSIS 包在修改和保护后都会获得一个新版本.有没有类似的报道?

解决方案

遗憾的是,目前没有类似于 RDL 文件的 dll 程序集版本的内置功能.

获取某种版本信息的唯一方法是通过 C# 或 VB.Net 查询服务器上 RDL 文件的最后修改日期.您可以使用 ReportingServices 网络服务来执行此操作.

您还可以实现一个自定义函数,每次修改 RDL 文件时,将数据库中的某些字段更新为当前日期.

所有文件修改信息的问题:你仍然不知道哪个版本在哪个服务器上,你只知道它是什么时候上传/修改的.

有关更多信息,请参阅以下页面 - 遗憾的是没有解决方案:

I'm looking for a way to get versioning informations out of my SSRS reports. I have several environments and would like to be able to compare which report version is deployed on these environments. In SSIS this is very easy because each SSIS package gets a new version when it was modified and safed. Is there something similiar with the reports ?

解决方案

Unfortunately there currently is no built-in functionality similar to a dll assembly version for RDL files.

The only way to get some kind of version information is to query the last modified date of the RDL file on the server via C# or VB.Net. You could do this using the ReportingServices webservice.

You could also implement a custom function which updates some field in your database to the current date each time the RDL file modified.

The problem with all the file modified information: You still don't know which version is on which server, you just know when it was uploaded/modified.

See the following pages for some more information - unfortunately no solution:

这篇关于SSRS 报告版本控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-12 21:02