简体   繁体   中英

Run SSRS Report automatically with parameters

I've got about a dozen SSRS reports on various servers which I need to run every month and I would like to run these automatically on the first of each month. The issue is that the reports require parameters to run like a "start date" and "end date" and a few other parameters.

What would be the best way to go about this? I've been thinking about creating an SSIS package to do this in C# but just wondering if anyone has any better ideas.

Thanks.

You can automate this using Subscriptions and Delivery Feature in Reporting Service.

It allows you to run report at specific time on reporting server. these reports can be delivered to shared folder or to email address.

In the subscription screen in Reporting Services Report manager, go to the options report parameter values, set the reporting parameter values. You can also set default values in reports itself. Let me know more about how do you want to pass the parameter. The start date and end date can be set through expression such as start and end of the month so on.

The parameter value needs to be set such as "start date" =DateSerial(Year(Now()), Month(Now()), "1").AddMonths(-1) and "end date parameters" =DateSerial(Year(Now()), Month(Now()), "1").AddDays(-1) in the report parameter value section of subscription screen

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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