首页 > 解决方案 > 如何将参数中的 SSRS 报告路径发送到存储过程?

问题描述

我有多个部门需要访问同一份报告。每个部门都应该看到他们的相关数据,而不是其他部门的数据。

为此,我创建了 4 个报告,每个报告都有发送到 SP 的内部参数,因此它只检索相关记录。

我认为这效率不高,所以我想也许我可以将报告存在于 SSRS 中的路径发送给 SP,比如

Home > Management Reports > HR
Home > Management Reports > Finance
Home > Management Reports > Legal

从这个地址我可以告诉部门

有什么方法可以获取 SSRS 中的当前文件夹并将其作为参数发送?

标签: sql-serverssrs-2008

解决方案


1. create a parameter call it department, hide this parameter
2. accessing the ssrs reports give them the URL with the parameter on it

   reporturl&rs:Command=Render&Department=HR

这样您将只使用 1 个报告


推荐阅读