简体   繁体   English

如何以编程方式在SSRS报表中生成数据集?

[英]How do I programmatically generate a dataset in a SSRS report?

I want to execute a SQL query and use the results of that query to generate my own dataset for use in a SSRS report. 我想执行一个SQL查询,并使用该查询的结果来生成我自己的数据集,以供在SSRS报告中使用。

More specifically, I'm trying to create a SSRS report subscription calendar. 更具体地说,我正在尝试创建SSRS报告订阅日历。 The calendar will display when certain subscriptions are scheduled to run. 当计划运行某些订阅时,将显示日历。

I plan to do this by querying the report server's schedule table and generating a row for each scheduled run. 我计划通过查询报表服务器的计划表并为每个计划的运行生成一行来做到这一点。

eg Subscription A runs every weekday at 2pm. 例如,订阅A在每个工作日的下午2点运行。 Subscription B runs every Monday at 9am. 订阅B在每个星期一的上午9点运行。

This is the dataset I want to generate for some arbitrary week: 这是我要在任意一周内生成的数据集:

Monday Sep 14, 9:00:00, Subscription B
Monday Sep 14, 14:00:00, Subscription A
Tuesday Sep 15, 14:00:00, Subscription A
Wednesday Sep 16, 14:00:00, Subscription A
Thursday Sep 17, 14:00:00, Subscription A
Friday Sep 18, 14:00:00, Subscription A

Is this possible? 这可能吗?

Is the following article useful regarding querying the report server the reports are hosted on/in 以下文章对查询报表所在的/所在的报表服务器是否有用?

Query SSRS Report Schedules 查询SSRS报告时间表

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM