与SQL存储过程相比

与SQL存储过程相比

本文介绍了与SQL存储过程相比,SSRS报告花费的时间太长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

i有一份SSRS报告,其中有多个报告参数,本报告是主要报告中的子报告。



这个子报告花费了大量的时间(大约40分钟)来获取结果。虽然sql查询只用了10秒钟。



i试图使用OPTION(Optimize For Unknown)考虑参数嗅探。但没有运气我已经投入了半天的时间尝试各种选择。



我的尝试:



有任何人sugesstions please。

解决方案

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.

解决方案


这篇关于与SQL存储过程相比,SSRS报告花费的时间太长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 15:38