Schedule SSRS task

时间:2015-07-28 17:05:03

标签: sql sql-server reporting-services sql-server-2008-r2

I want to schedule two reports, one report to be triggered on the last working day of the month. Another report to be triggered on the first workday of the each month. How can I do this?

2 个答案:

答案 0 :(得分:1)

目前无法通过标准订阅机制执行此操作。

您的要求不仅与UI(ReportServer网站)冲突,而且与Reporting Services数据库设计冲突。您可以查看Schedules表以了解我的意思。

你可以做三件事:

  1. 快速&风险,不推荐
    编辑生成的SQL作业(从未测试过,不支持),您可以在此处指定工作日。 Schedule

  2. 很好的方法,但(非常)长期
    提交connect建议。

  3. 推荐但需要开发
    开发一个使用Reporting Services Web服务并具有定制订阅机制的应用程序。

  4. 你可以考虑做第2步& 3。

答案 1 :(得分:0)

a subscription on the first day of the month is pretty easy. Whether data driven or static the schedule you set up can be set to run on the first day of every month. enter image description here

For the last day of every month, you'll need to create 3 subscriptions. One subscription for September, April, June and November (on calendar day(s) = 30), one for all the rest (on calendar day(s) = 31), and one for February alone (on calendar day(s) = 28).

Leap years.... you're on your own there...