I'm using SSRS 2012 with VS 2012 as the editing environment, against an MS SQL Server database. I have a text query dataset that when I execute in the Query dialog for the dataset returns proper results. In the preview tab, it returns nothing. If I replace the query text with a static list, it returns fine in both Query and preview. With the real query, there are no errors returned from preview, just an empty result set. The report also operates properly when deployed to the server. This is repeatable with a very simple query, at first I thought it might be because the original query was fairly complicated.
The report was recently converted from 2005, and worked fine in that environment (SSRS 2005, using VS 2008 against the same database). This is the first report I'm digging into since the conversion, but a cursory look at other reports demonstrates similar symptoms, so I suspect that testing report changes is going to be very difficult until I can find out how to get around this.
This is NOT a caching issue, I have removed the .rdl.data several times with the same results.
Any ideas why preview is eating the data or what I can do to make it behave?
Related
I have a problem similar to the one within this topic:
SSRS: Showing the correct execution time on a two page report?. Well the problem is practically the same but the BI tool is different it's not in Microsoft SQL Server Report Builder but in PowerBI. I have searched for something similar, some kind of execution time indicator that will show how long report was generated. I know that PowerBI is different from Microsoft SQL Server Report Builder but both are BI tools that allow to create reports from many kinds of sources (SQL queries for example).
Perhaps someone found a solution for my problem during his/hers work and could post a solution for my problem? I would be much obliged.
I have an SSRS report that I have updated the sql for one of the datasets. I have ran clean on the project and then rebuild. I deleted the original report from the server. I deployed the new report and then ran it. When I use SQL Profiler I can see that it executes the original SQL for the dataset. When I open the .rdl file in a text editor the SQL for the dataset has been saved correctly. What can be going wrong?
Solved the issue. It was an 'I'm a beepin muppet' problem ;-) There were two very similar reports and I was changing the wrong one! Lesson to learn is remember to dig through the code to determine exactly which report is being invoked via your application before trying to update it!
Is there any way to investigate performance statistic for SSRS report from VS 2008 Shell.
I mean while generating preview for report see the statistic: How much time for rendering, how much time for query.
P.S. I know that WholeTime - TimeQueryExecutedSeparately = TimeRendering, but still I want to find a way.
What's the point? Will your users use the VS 2008 Shell?
I would deploy to a test environment of Report Manager or SharePoint and run your reports there. Then you can query the ReportServer.dbo.ExecutionLog3 view to get those statistics.
I have got an MVC4 application that basically performs some CRUD functions using forms in views.
However I am getting really weird results when I perform a simple sql insert by submitting a form. Essentially, I should only have one single record inserted into the db but what I find is that I get rows added randomly to some other table that I haven't run queries for(almost like it is running a previous query)
My guess is that SQL sever is caching previous queries including sprocs and running them randomly in the background
I have tried to perform the same insert query on production without any hassle but i get these random additions when I'm testing on the test server.
Has anyone faced a similar issue and is there a recommend way of dealing with situations like these? I have already tried restarting sql service, and meticulously checking my code to no avail.
I'd like to build a report in SSMS so that you can click on an object, choose the report, and it queries a data source (not the server you're looking at itself) to return information about that object.
All the SSMS reports I've seen use an empty data source (Data Source=.), so that SSMS runs it against whichever database/server/object you're clicking on. I'm saving historical info on a different server.
I know it's possible; according to http://sqlbg.wordpress.com/2011/03/06/how-to-create-custom-reports-for-sql-server-management-studio/ there are 6 parameters passed. I'd like to run a query against my data source, ideally passing those 6 parameters to an SP on my repository data source.
I took the code in the link above and created an RDL, then imported it into my project (SSDT and BIDS 2005 both; same issue). It works in the Preview mode, returning a dataset from an Embedded Datasource in the report - but when I open the RDL in SSMS, I get "invalid object name "mytablename"' (where mytablename is the name of the table in my query). So it looks like it's not properly using the data source. Profiler confirms this - there's no login to the server at that time.
I have successfully reproduced the problem in SSDT and BIDS 2005 (8.0.50727.4039, Microsoft Visual Studio 2005 Tools for Applications)
Many thanks!
It appears that SSMS will ONLY use the SQL Server you're clicking on as the data source, no matter what you actually use. This is probably for security, but it makes cross-server reports more difficult.
To work around this, I created a linked server (RPC OUT on, collation compatible = true), using a specific user who only had read permissions.
If anyone knows of any cross-server reports that work in SSMS, please let me know - I'd love to know how they did it.