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.
Related
We are using the IBM Cognos Report Studio for Making the Reports.
And we have 1000s of reports developed and using.
Now i need to fetch all the SQL queries written in these 1000+ reports.
For that at present i am opening the report studio for each individual report and getting the query.
But it is very tedious job and taking months to get all the SQLs in these 1000+ reports.
So i am looking for a way to get all these queries from database behind Cognos studio.
Does these report parameters (including the SQL) store in a Database or only in Contentstore?
If it store in DB then is it possible to access the Report Studio in a Database tool like Oracle SQL Developer?
So that i can fetch all the SQLs in one shot from the database table.
Thanks for the help!
My experience migrating from one reporting product to another is like what you are asking. I think I had 7000 reports that I was aware of plus many reports sitting on workstation hard drives. At some point along the way we realized that the new product had different features than the old one, so report redesign was a good option in most cases. It took 18 months once we actually started working on the reports. That was to replace the 700 "standard" reports. Users were on their own (with support from IT and subject matter experts) for their custom work. I now have about 19,000 reports in Cognos.
Except where the report developer wrote SQL in a SQL object in the Queries area, Cognos reports do not contain SQL code. Cognos generates the SQL at runtime based on the report spec and user interaction (what parameters they set, what page the opened, etc.). Short of writing your own report spec parser, duplicating the work that Cognos does for you, there is no way I know of to generate the SQL.
One possibility: I haven't dug too deeply into the Cognos SDK. There may be a method there to generate the SQL for each report. Then you can do it automatically. Be aware that for thousands of reports you'll want to run this process during non-work hours. It could run for hours and may use a lot of resources.
Another possibility: Turn on native query logging (Cognos Administration | System | All dispatchers | | Set properties | Settings | Logging | Check the boxes for "Audit the native query..."). Then have a person, a product like those from Motio, or a Cognos SDK program you create yourself run every report. Then you can get the SQL from the Audit database. Of course, the problem here is answering prompts. It will probably take a person to run these.
To add two columns to a list, or two data elements to a report or page header or footer, or two filters (I don't know what you mean by "clause"), you'll want to use the Cognos SDK.
Choose relevant examples of different types of reports.
Examine the XML report spec for each of those reports.
Determine how to identify where the new element should appear in the XML.
Write a program (probably in C# or Java) to use the SDK to...
inspect every report in your environment.
determine which pattern the report fits.
add the data elements.
save the report.
I am a developer and performance tester but not a DBA. My team is working on a performance testing tool that is specific to our software. One of the features we want it to have is the ability to generate a database report immediately after the test. Our software is database agnostic. For Oracle, I can easily create a snapshot id before and after the test and programmatically create an AWR report for those snapshots, write to a file and save with other artifacts we gather. Works great.
For SQL Server, however, there is no AWR equivalent (that I know of). I know the MDW as part of the SSMS has a UI for getting things like top 10 slow SQL and things like that. But, I have not yet found a way to programmatically create and extract a SQL performance report (preferably similar to Oracle's AWR) for SQL Server.
I am even willing to create the report myself if I can find a way to extract the raw data.
Any ideas would be greatly appreciated because searching online is not getting me anywhere.
P.S. I'm trying to do this in Java, by the way, but will accept help in any language. Thanks again!
Good news! In SQL Server 2016, you can use Query Store. This is like your flight recorder blackbox.. finding long running queries and waits. Capture baseline built in to SQL Server. You can compare before and after hardware changes and/or upgrades on queries. Maybe this similar to Oracle AWR.
Only available SQL Server 2016 and up.
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'm in the process of creating a report in the latest version of SQL Server 2012 Report Builder but there are errors that I can't localize or troubleshoot because I'm not sure this functionality exists. I have the T-SQL behind this code rock solid but my question isn't about the coding, it's how can one go about troubleshooting errors in report samples through this application when all that shows up is '#ERROR' (instead of more detailed error text)?
SSRS report development in Visual Studio (or BIDS if you've only installed SQL Server) does give more options for debugging these sort of errors than Report Builder. In VS:
You can see there is a clear error message here.
As you've found, Report Builder doesn't have any sort of similar functionality - seems a pretty big oversight for a nominal development tool.
Running this report through a Report Server and checking any logged errors doesn't help, either; all that's logged is the following:
Microsoft.ReportingServices.ReportProcessing.ReportProcessingException:
The specified operation is not valid. ;
So that's hardly going to help.
If you do have the option to use VS, do it. Report Builder has pretty much all of the same functionality, but it's situations like this when it falls over.
For what it's worth, when I've had these errors these are often due to datatype conversions (as above) - hopefully the problem expression isn't too complicated to investigate.
I am currently looking into developing and designing the Report service system for work. My user does not seem to have access to Report Builder etc. I have given access to the below roles, but all I can seem to do is view report, create new folders and upload.
Browser
Content Manager
My Reports
Publisher
Report Builder
Does anyone know what I need to do to resolve this?
Thanks
Have you tried following the instructions on MSDN?
(These are the instructions for SQL 2008- I think the process for SQL 2005 is similar but may differ slightly)