Showing posts with label Reporting Services. Show all posts
Showing posts with label Reporting Services. Show all posts

Monday, October 8, 2012

Customizing Report Manager Application Title

You can customize the Report Manager application title that appears at the top of the page. By default, the title is SQL Server Reporting Services. Follow the steps below to change the title.

1.    In Report Manager, click on Site Settings.
2.    On the General tab, in the Name section, replace SQL Server Reporting Services with a different name.
3.    Click Apply.

Please note that you need to be assigned to the System Administrator role to set properties on the Site Settings page. 

Hope this helps!

Sunday, April 8, 2012

Start/Stop SQL Server from command line


You can using the following script to start/stop SQL Server services using command line:

SQL Server Database Engine(both SQL Server service and SQL Server Agent):
NET STOP SQLSERVERAGENT
NET STOP MSSQLSERVER
NET START MSSQLSERVER
NET START SQLSERVERAGENT

SQL Server Reporting Services:
NET STOP ReportServer
NET START ReportServer

SQL Server Analysis Services:
NET STOP MSSQLServerOLAPService
NET START MSSQLServerOLAPService

Saturday, April 7, 2012

SQL Server Upgrade Advisor: Custom extensions or assemblies were detected on Report Server


You might see the following error when running SQL Server Upgrade Advisor on a SQL Server 2005/2008 instance.

Custom extensions or assemblies were detected on the Report Server.
Upgrade Advisor detected one or more custom data processing extensions on the Report Server. Upgrade can continue, but you must move the data processing extension assemblies to the new installation folder.

As the message indicates, this error simply means that you have custom extensions or assemblies on the Report Server you are upgrading. In most of the cases, you can resolve this by copying the custom extensions/assemblies from the “old” Reporting Services installation folder to the “upgraded” Reporting Services installation folder.

To give you a real example, I encountered this error when upgrading a SQL Server 2008 instance to SQL Server 2008 R2. The instance I was trying to upgrade had some Microsoft CRM Data Extension Assemblies as shown in the screen shot below. After the upgrade, I copied the DLLs to the new installation folder and everything was all set. 


Here are the paths to SQL Server 2008 and SQL Server 2008 R2 installation folders for Report Server.

\Program Files\Microsoft SQL Server\MSRS10.{InstanceID}\Reporting Services\ReportServer\Bin  ----- SQL Server 2008 Report Server

\Program Files\Microsoft SQL Server\MSRS10_50.{InstanceID}\Reporting Services\ReportServer\Bin ----- SQL Server 2008 R2 Report Server. 

Friday, March 23, 2012

Integration Services and Analysis Services missing in Management Studio


If you don’t see Integration Services and Analysis Services  in SQL Server Management Studio in “connecting to server” dialog box, there could be one of the two reasons listed below: 

1. You are using SLQ Server  Management Studio Express(SSMSE). If so, please note that you can’t use SSMSE to manage SQL Server Analysis Services, Integration Services, Notification Services, Reporting Services, SQL Server Agent, or SQL Server 2005 Mobile Edition.
2. You only have “Management Tools - Basic” installed. To be able to connect to other services(Integration Services, Analysis Services  etc), you’ll need to have “Management Tools - Complete”. Just run the installation file again and select the option shown in the screen shot below to resolve this.


Sunday, February 26, 2012

Reporting Error. The report cannot be displayed


Recently, I was upgrading one of our client’s SQL Server 2008 server to SQL Server 2008 R2 and got this error when testing Microsoft Dynamics CRM reports after the upgrade.

Reporting Error. The report cannot be displayed.
Try this action again, if the problem continues, check the Microsoft Dynamics CRM Community for solutions or contact your organizations Microsoft Dynamics CRM Administrator. Finally, you can contact Microsoft Support.


Additionally, the following event is logged on the CRM Server.

Source:MSCRMReporting
Event ID:19969
Web service request SetDataSourceCredentials to Report Server http://ServerName/ReportServer failed with SoapException. Error: An error has occurred during report processing. (rsProcessingAborted)

 To resolve this, uninstall and reinstall the SSRS data connector for CRM. The SSRS data connector for CRM can be downloaded from here http://www.microsoft.com/download/en/details.aspx?DisplayLang=en&id=12005. The download includes a lot of other stuff that you don’t need. After extracting the files, open up the SSRSDataConnector and run the Microsoft.crm.setup.ssrsdataconnectoe.exe file as shown in the screen shot below.


After the installation is completed, you will need to reset IIS and restart Reporting Services service.

Saturday, January 7, 2012

SSRS parameter default values not working

Having seen this issue several times on various forums, thought it would be a good idea to blog about it. In some cases, Reporting Services parameters with default values wouldn’t default and so you would have to manually select the values in the parameters. Obviously, this defeats the purpose of setting default values as you are required to manually select the values when running the report.
So what is the reason behind this issue? There could be 2 possible reasons based on my experience:
1. You have NULL or blank values in the dataset you have used to populate the parameter. There are two ways to fix this:
a.    Filter the blank/NULL values using a WHERE clause(example WHERE ColumnName IS NOT NULL AND ColumnName <> '')
b.    In the parameter properties, select the check boxes “Allow blank value” and “Allow null value” as shown in the figure below:
    
2. If the report works fine in BIDS(meaning the parameter is defaulting to the default values) but doesn't work in Report Manager after deployment, then you’ll have to either check the option “Has default” in the report properties in Report Manager as shown in the screen shot below or delete the report from Report Manager and deploy it again.
  

Wednesday, November 23, 2011

Reporting Services error: An item with the same key has already been added

When creating a data set in Reporting Services or Report Builder, you might encounter the following error: 
Could not create a list of fields for the query. Verify that you can connect to the data source and that your query syntax is correct

When you click on the details button, you’ll see An item with the same key has already been added.


This error occurs when the result set returned by the data set query has more than one column with the same name. Please make sure that each column is given a distinct name. You can use alias if you have columns with same name from different tables.

Sunday, October 30, 2011

Reporting Services Tutorials

Articles:
Reporting Services Tutorials(SSRS 2005) – http://msdn.microsoft.com/en-us/library/ms170246(v=sql.90).aspx
Reporting Services Tutorials(SSRS 2008 R2) - http://msdn.microsoft.com/en-us/library/bb522859.aspx
Tutorial: Designing Your First Report in SQL Server Reporting Services - http://www.sqlservercentral.com/articles/Development/designingyourfirstreportinreportingservices/1416/
Building Subreport in Reporting Services - http://shahfaisalmuhammed.blogspot.com/2011/10/building-subreport-in-reporting.html

Passing Parameters to a Drill-through Report in SSRS -  

Videos:
Virtual Labs:
TechNet Virtual Lab: Authoring Reports Using SQL Server 2008 Reporting Services - https://www.microsoft.com/resources/virtuallabs/step2-technet.aspx?LabId=fd426db1-c659-4421-aeac-fd4ef4ccdc4d&BToken=ex
MSDN Virtual Lab: Building Your First Multidimensional Report with SQL Server 2008 R2 Reporting Services - https://cmg.vlabcenter.com/default.aspx?moduleid=606eec91-3234-4448-ad86-5d0ddf278da2
MSDN Virtual Lab: Visualizing Data with Maps in SQL Server 2008 R2 Reporting Services - https://cmg.vlabcenter.com/default.aspx?moduleid=a94a0e61-d485-4031-8158-74d17d4822ee

Sunday, October 2, 2011

Building Subreport in Reporting Services


Today I am going to talk about(or rather write about) building Subrpeorts in SQL Server Reporting Services (SSRS).
First, let's create two simple reports -
1. EmployeeSummary report - Parent report.
2. EmployeeDetails report - Subreport.
NOTE: If you are well familiar with creating reports you can jump right to the Building Subreport section below.
Start Business Intelligence Development Studio, go to file menu, select new and then select Project. The New Projectdialog box appears, select the Report Server Project template and type a relevant name as shown below.

The first step in creating a report is to add a Data Source to connect to the database. Right-click Shared Data Sourcesand select Add New Data Source. Give a relevant name to the Data Source and click the edit button to define a new Connection as shown below. Click OK twice to create the new data source.


Right-click the Reports folder and go to Add menu and select New Item...

The Add New Item dialog box appears, select the Report template and type a proper name(in this case it is EmployeeSummary) for the report as shown below and click ok. This will be a Summary report that shows all the Employees and the number of hours they worked for a given month.

Now click on the Dataset drop down box and select New Dataset as shown below.

The Dataset dialog box appear, type a relevant name for the dataset and type a query to cater the report as shown below.

Now click on the Layout tab, drag Table from the Toolbox and drop it on to the body of the report as shown below.

GO to View menu and click Datasets to get the Datasets window if its not open already. Now drag and drop the required fields from the Dataset into the layout as shown below. Please be sure to drop the fields in the detail section. Also, do some basic formatting such as adjusting the column width, header color etc to make the report look pretty :)

Now click the Preview tab to look at the new report we just created. This will server as our main report or summary report. Now we will create a subreport which will server as a detail report. Please note that this is just sample data created for demo purpose.

Now let's create another report which will be our subreport. Right-click the Reports folder and go to Add menu and select New Item...
The Add New Item dialog box appears, select the Report template and type a proper name(in this case it is EmployeeDetails) for the report. This will be a detail report that shows all the Employees, the Practice Area they belong to, whether permanent employee or a contractor and utilization in percentage. Your screen should look similar to the one shown below.

Similar to how we did for the first report, we will need to create a new Dataset, type the query for the report data as shown below.

Again, as we did for the first report, click on the Layout tab, drag Table from the Toolbox and drop it on to the body of the report, drag and drop the required fields from the Dataset into the layout as shown below.

Click the prview tab to view the data as shown below.

Now let's create a parameter in the subreport on EmployeeNumber. In most of the cases, you will likely have a parameter on subreport and you will pass the parameter from the parent report to the subrpeort. To be more specific, when you place the subreport in the main report, you can select the report parameter and a value to pass from the parent report to the report parameter in the subreport.
Go back to the layout tab, go to Report menu and select Report Parameters as shown below.

The Report Parameters dialog box appears. Click Add and create a parameter as shown below.

Click on the Data tab and add a WHERE clause to the query as shown below. Please note the parameter we just created in the WHERE clause. Now let's get to the meet and potatoes of this post -

Building Subreport
In the main report(parent report), add a column where you want your subreport to be displayed. I will add it right after the EmployeeNumebr Column in this example.

From the Toolbox, drag Subreport and drop it onto the detail section of the new column we just created. Please see the screen shot below.

Righ-click on the cell where you dropped the Subreport, in the Subreport dropdown box, select EmployeeDetails as the subreport as shown below.

Now go to the Visibility tab and select the options as shown below. This will ensure that the subrpeort can be toggled using the EmployeeNumber column.

Go to Parameter tab and set the options below to pass the parameter from the main report to the subreport.

Save the report and click Preview to look at the final report as shown below.

Reporting Services Access Error caused by UAC


You might encounter the below error when accessing Report Manager website(which is typically http:///reports).

User 'domain\username' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed

When a user with administrator privileges logs in, UAC removes the authorization and access control components that identify an administrator. This causes all the applications to run as if they were launched by a standard user. To work around this, launch Internet Explorer as administrator by right-clicking it and selecting Run as administrator as shown in the screen shot below. 


Now browse to the Report Manager site and explicitly grant full permissions to the account you use to log in. Please note that once you explicitly grant full permissions, you don’t need to launch IE as administrator.


For more details, please follow the instructions in the article (step 7 and 8) - http://msdn.microsoft.com/en-us/library/bb630430(v=SQL.90).aspx

Friday, September 30, 2011

Passing parameters to a Drillthrough report in SSRS


This post will walk you through the process of creating and passing parameters to a drillthrough report in SQL Server Reporting Services 2008. I have got two reports:
Employee Summary - This report shows the activity of the all employees by month. The columns in the report include name of the employee, his/her practice area, hours he/she worked during that month and the revenue generated by the employee etc as shown in the figure below.

Employee Details - This report shows the activity of the employee at a more detail level. It includes additional columns such as the name of the client the employee worked for, name of the engagement(project), description of the work etc as shown in the figure below. We will setup this report as our drillthrough report. Also, this report has two parameters -Months and Employees, whose values will be passed to this report from the main report(which in this case isEmployee Summary). So basically we are obtaining the values for these two parameters from the main report.

Users will use the Employee Summary report to look at the activity of all the employees at a glance. To find out more details, users will click on the employee name to go to the drillthrough report to find out more details about each employee's activity during that month. To create a drill through report, right-click on the Employee Name column in the main report (Employee Summary)and select Text Box Properties as shown in the figure below.

The Text Box Properties dialog box appears as shown in the figure below.

Select the Action page. In the Enable as a Hyperlink; options, check the option Go to report. In the Select a report from list: drop-down, select Employee Details report. Click the Add button to add the parameters that are defined in the drillthrough report(Employee Details). Your screen will look similar to the one shown below.

To see the action, run the main report(Employee Summary), click on any employee name to see more details about the activity of that employee for that month. Lets click the first one(Gary Miller, Jan 09). The drillthrough report(Employee Details) will open up, but please note that it will only show the details for the employee "Gary Miller" for the month of January as shown in the figure below.

Thursday, September 22, 2011

Creating SSRS Report against Analysis Services Cube


Here is a step by step procedure(screenshots) on how to create a SQL Server Reporting Services 2008 Report on top of an Analysis Services Cube.