Reporting services 使用SSRS数据驱动订阅作为数据驱动计划
我希望有一个数据驱动的“时间表”,这意味着每个报表都有其唯一的时间(存储在每分钟填充一次的表中)Reporting services 使用SSRS数据驱动订阅作为数据驱动计划,reporting-services,ssrs-2008,Reporting Services,Ssrs 2008,我希望有一个数据驱动的“时间表”,这意味着每个报表都有其唯一的时间(存储在每分钟填充一次的表中) For example: (not all fields included) To Parameter Format NextRunDate ReportStatus bob[at]email.com SalesRegion1 Email 1/1/2012 9:00:00 'Unprocessed' joe[at]em
For example: (not all fields included)
To Parameter Format NextRunDate ReportStatus
bob[at]email.com SalesRegion1 Email 1/1/2012 9:00:00 'Unprocessed'
joe[at]email.com SalesRegion2 Email 1/1/2012 9:05:00 'Unprocessed'
sara[at]email.com SalesRegion1 Email 1/1/2012 8:55:00 'Processed'
如果当前时间为2012年1月1日9:01:00,则我的数据驱动订阅“where语句”类似于
where NextRunDate < GETDATE() -- in the past
and ReportStatus = 'Unprocessed' -- <--here is my problem
其中NextRunDate 和ReportStatus='Unprocessed'-如果报告以类似的周期运行(与代码中的周期相同,每分钟或每五分钟运行一次),则可以使用BETWEEN和DATEADD减去分钟数(无论什么),以获得到现在为止最后一次运行报告的时间
{其中,DATEADD(mi,-5,GETDATE())和GETDATE()之间的NextRunDate}
我希望这有帮助