Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

pdf caching problems when being populated from SQL reporting

Posted on 2011-02-16
2
Medium Priority
?
324 Views
Last Modified: 2012-05-11
I have a report that runs fine with html4.0 but if you call it using a pdf the report continues to hold on to a previous copy that was opened in that session. PLease help.

0
Comment
Question by:mwhodges
2 Comments
 
LVL 9

Accepted Solution

by:
gdupadhyay earned 2000 total points
ID: 34909104
Change the parameter always. Add timestamp as a parameter and pass current time.

Reason is: If parameters and URL is same, report manager fetch the report from cache. So try to add new parameter @TimeStame and pass to report as parameter. Don't change any thing in sql or stored procedure
0
 
LVL 27

Expert Comment

by:planocz
ID: 34909517
If you are doing web. then place this in your load event
        Response.Buffer = True
        Response.Expires = -1442
        Response.AddHeader("cache-control", "private")
        Response.AddHeader("pragma", "no-cache")
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is helpful to note: This is a cosmetic update and is not required, but should help your reports look better for your boss.  This issue has manifested itself in SSRS version 3.0 is where I have seen this behavior in.  And this behavior is only see…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question