I seem to have a problem with getting consistent answers from SSRS. I will explain the situation.
=First(Fields!Performance.Value, "Perf")
. I chose this function since every row has the same value for Performance so there should be no difference. Before running the reports I use the following commands to get rid of cache:
DBCC FREESESSIONCACHE
DBCC FREEPROCCACHE
DBCC DROPCLEANBUFFERS
What am I missing? Am I doing something wrong? Software wise I use SQL Server Management Studio 2012, and Visual Studio 2012. Will give more information where needed
It sounds like it is SSRS report preview using cached results. If you are previewing the report and not changing any parameters for a particular dataset, it will just use a cached copy of the dataset.
In the preview mode, there is a 'refresh' button you can click which I believe deletes the cache and freshly queries the dataset. Alternatively, you can manually delete the cached file. They are located in the same folder as the RDL files.
For instance if your report is called
MyReport.rdl
You'll also find this file (provided you've previewed the report at least once)
MyReport.rdl.data
Delete the .data file and re-run the report. It will fetch a fresh dataset from the source.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.