We have an SSRS report
that uses a stored procedure
with several parameters. Until this morning, the report ran as usual.
So today I modify the stored procedure and run the SSRS report
. After the changes, the query runs fast but the SSRS report
takes several minutes to display the data.
I ended up declaring variables inside the SP instead of using the parameters (as suggested in this SO question) and that fixed the issue.
My question is: what changed that the SSRS report takes much longer to generate data? I understand parameter sniffing
, but why would it change today? Parameter sniffing
should be occurring all the time, not today after the the SP was modified.