views:

2068

answers:

2

We have some SQL server reporting services reports. I didn't write then but I have to take care of them.

These reports fire when opened in the browser, and with the default parameters (search terms and restrictions are blank) they retrieve a lot of data, which is slow. The client would prefer that the report is not generated until the user enters parameters and presses "view report"

Unfortunately I don't know SSRS at all well - how do I stop the report from firing when it is opened?


The details of how to do it on a deployed report (as per Rihan Meij's answer) is as follows:

Click on a report, click on "properties" at the top. You may have to wait a bit, because the slow report may be running now. Then click on "parameters" on the left.

For each parameter, make sure that "Prompt User" is checked, and for at least one parameter, "Has Default" is not checked. Click on "View" again at the top left (or go back to the folder and click on the report name) to view the report, and note that the report does not fire right away.

In the report builder, you can do this via the "Filter" menu. De-select values from at least one filter, and save the report.

Is it also possible to stop reports from firing on loading when the report has no parameters?

+4  A: 

Hi

I have done that by changing my query slighlty to require parameters when it is run.

I have then after I have published the report on the report site, specified that the parameter, should prompt the user. This does have the effect that the report does not pull the sql server to its knees when users just open the report to see.

See the attached screenshot (A picture says a thousand words, right :) )

Rihan Meij
+2  A: 

I found that I had to set at least one of the report parameters to not have a default to keep the report from autorunning.

I had to use this configuration (notice that all 3 of the parameters I left without defaults accept Nulls so the users can just click the Null checkboxes): Screenshot

to get the users to see this and to keep the report from autorunning: Screenshot

0bytes