简体   繁体   中英

How to run a procedure immediately when 'view report' is clicked in ssrs?

I have a ssrs report which has many tables . These tables fetch the data from database tables with the defined datasets . Now before my report fetches the data from the dataset, it is really important to run a procedure based on user input into my report parameter . How can I achieve this?

Note: As of now I wrote a EXEC PROC statement in one of my datasets. I am now clicking the 'View report' twice to see the expected results.

By default, SSRS processes all the datasets in parallel. There is an option called "Use single transaction when processing the queries" which makes it evaluate the datasets one at a time. So the first procedure has to finish before it will move on. This setting is in the Data Source properties. The datasets will be processed in the order you added them, so you may have to rearrange them to make your procedure be first.

在此处输入图片说明

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