SSRS showing different data in reportserver and Microsoft Visual Studio - reporting-services

In Microsoft Visual Studio when i run a Report using a Preview the data is showing and when the same report i run from server side its not showing the same data as per the Visual Studio Preview
please suggest

Visual Studio caches locally data in order to reduce the generation time for design puroposes, it will only update the data if you change the parameters values so if your report doesn't have any parameter you will get old data.
To refresh Visual Studio data preview the report and press the refresh button inside the generated report.
Let me know if this can help you.

I had a very similar problem. When I previewed on VS 2015, everything displayed perfect, but when I deployed to my server successfully, only one field wasn't showing up.
What ended up working was changing my report data sets from shared to embedded. Even though they were referencing the same query, somehow there was a disconnect when referencing the shared data set rather than embedding it directly in the report.

Related

SSRS Report runs slower in Preview Mode/Report Viewer

I am using Visual Studio 2019 and using Microsoft Reporting Services Projects Extension v2.6.7. The problem i am facing is i have a report that process about 60k records, the report is complex and has Groups, repeat headers, dataset filters and also VB Code.
The stored procedure used for this report runs in less than 10 seconds and when the report is deployed to Report Server the report completes rendering in less than 2 Mins. But when I run the same report using Visual Studio in preview or Run Mode (Report Viewer) the report runs for a whooping 17-20 mins. I have used SQL Profiler and see the Stored procedure execution time is almost same as the report execution time. The stored procedure is designed to handle parameter sniffing issue and I dont see any issue with the procedure.
From the report side, i have tried Keeptogether=false, Interactive size etc that could impact performance. They look fine.
I also tried to add WorkingSetMaximum to increase memory but still no luck. The client i am working with requires to have the RDLC File integrated in their app and will not want to deploy on Report Server for their own reason.
How can i make my report run faster in Visual Studio Preview Mode/Report Viewer (Run Mode) so that I can match the performance of the report with the performance i Get in Report Server.
Also if anyone could tell if there is a difference in how the report rendering works on Report Server vs Preview Mode.
Edit 1 - Report Server and the database is configured in my laptop and it is not having any different configuration.
Edit 2 - Another observation i have gathered by running SQL Profiler is that during Preview mode the connection is kept open and the data retrieval time justifies report run time. Both are same. But when i run the report through report manager from the same machine, procedure completes in seconds and even the report renders faster. And As i have mentioned above, i have taken care of parameter sniffing. I am now trying to understand if there is a difference in the way SSRS Engine treats report rending and data retrieval for Preview and when report is deployed to reporting service.
I came across this Q&A discussion in MSDN. I tried to replicate this and it gave me a fix by changing the trust level for CAS in config file. But still I have a question with regards to how Report Viewer in Visual Studio behaves. Is there any similar setting that we use in the application config that can be used to improve development and test performance in Visual Studio.
MSDN Blog
Use the existing framework but force the use of Legacy CAS [code access security] Security
In Winforms <NetFx40_LegacySecurityPolicy enabled="true" />
In ASP Net application <trust legacyCasModel="true" level="Full"/>

SSRS Report not returning data

I'm battling with a strange one. I've created a report using Visual Studio and deployed it successfully (so I thought). When I run it from within Visual Studio it displays data perfectly. But when I try and run it from online directly it allows me to select the parameters, it goes through the motions but returns no data. What could the issue be? I tried refreshing the fields in the Query Editor but this didn't work either.

Added items to a database, but SSRS report does not appear to see them

This is a very strange and perplexing problem I have never run across. I am working on an SSRS report that feeds off a database. I use an SSIS extraction package to append data to a table in said database. Everything seemed to work fine until the first time I updated the table. I can see the new data in SSMS, but the report looks like it is only seeing the data I had in there prior to the update. I've restarted Visual Studio, checked the connection string, and checked my dataset queries and I have no clue why the report is doing what it's doing.
If you are editing the report in Visual Studio, yes, it can be overly aggressive about caching the results of queries.
Look in the Solution folder (in file explorer, not Visual Studio) and look for a file with the name of the report, but .data appended, such as Report1.rdl.data.
Delete that file, which you can do while VS is running. Then preview the report again.

Need help to get updated reports in Visual Studio have been setup as linked reports to update direct to linked report

I have just moved into a new company and the people who setup their reports set them up under projects and then created reports. Using Visual Studio they then updated to the server, created a linked report to sub folders via internet explorer interface.
I have now found that to update any of these reports, I have to update them to the project location and then delete the old report and create a new linked report.
I am hoping that there is a gap in my knowledge and there is another way to do this. Alternatively is there a way I can move the reports to their respective folders. I do not have access to the reportserver to create folders but can apply to IT to get these done.
Would love some help so I do not spend days updating most of these reports.
Thanks
If I understand you correctly they are developing the reports in visual studio and using the deploy function to upload them to the reporting server. They then create a linked report using the web-based report manager interface so that the report is the accessible from another location.
I haven't tested it using the auto-deployment feature of visual studio, but at least if you update the main report then all linked reports will now be the new version as well. So you should just be able to deploy from visual studio and have all of the old linked reports work as well. Only if the auto-deployment process involves deleting the original report before uploading will the linked reports be broken. As long as it is a simple update/replace operation it will be fine.
If it is actually deleting the reports during deployment and the linked reports stop functioning (giving an error something like "the report link is no longer valid") then you don't actually have to fully delete and recreate the linked report. You can go to the properties of the linked report and update the link location so that it will no point to the proper report again (tested on 2008 R2). This will save you from having to redo all of the security and subscriptions that the linked report may have.

Can't see subreport in the Report Manager

I've been following this tutorial (lesson 6) in order to build and deploy a sample report with an embedded subreport which reads its parameters' values from the parent report. This subreport is embedded in one of the group rows of the report's table, and both share the same datasource. Additionally, detail rows appear collapsed until the user presses the (+) button for each group of data in the table.
The report works great when I preview it at the Business Intelligence Development Studio (by the way, SQL 2005 Express edition) but when I deploy it and try to see in the Report Manager, the subreport is not shown. And, if I press the (+) button, the following message appears:
Some parameters or credentials have not been specified
Does anybody has the slightest idea of what I am doing wrong? Why does it works perfectly in the Report Viewer embedded in Visual Studio but not in the Report Manager web app?
Thanks in advance.
Does the subreport use the same Data Source as the parent report? If not, be sure to check the data source of the subreport to make sure it is correct. Check in Report Manager, not your local copy.
I'm beginning to think this could be an issue with the browser. I'm currently using Internet Explorer 8 Beta and I'm also experiencing weird behavior from the Report Manager. I've tried with Google Chrome and Firefox 3 and, although the navigation is not as smooth as I like, the problem seems fixed.
it happens when you use IE8 as a report browser. I faced same issue and when I tested on chrome it worked fine .
This may or may not be related, but I had a similar problem some time ago (except that in my case the reports were accessed through a custom web page) and it turned out we had an older version of the report viewer control (the version that came with Sql 2005 RTM). After upgrading to the latest version the issue went away.