Click here to Skip to main content
15,890,043 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Every One ,
i have a SSRS Report which has multiple Report paramters and this Report is a Subreport inculded within the Main Report.

This Sub report is taking hell amount of time(around 40 min) to fetch the result. while the sql Query is taking only 10 seconds.

i tried to use OPTION(Optimize For Unknown) Considering parameter sniffing.but no luck i already invested half a day in trying various options.

What I have tried:

has anyone any sugesstions please.
Posted
Updated 7-Jul-17 2:30am

1 solution

Check if you are passing the same parameter to the stored procedure as in the sub reports.
some time issues might come while passing nulls,empty and datetime values.

Also look if your are doing any opertions in the reports (sub reports) such as grouping , filters or converions

check if you are using the latest subreport (update sub report).

Is this report working while you preview.
 
Share this answer
 
Comments
Member 10017141 7-Jul-17 8:55am    
i am passing the same Parameters in both sub report and SP. but i have some paramters for them i am allowing null ,empty and datetime values.

what can i do for this.

Report is working fine in Preview as well

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900