Nik Patel's SharePoint World

An adventure in SharePoint and Microsoft in general.

Archive for the ‘SP2010 & SSRS’ Category

Step by Step: Consuming SharePoint 2010 Lists Data in the SSRS 2008 R2 Reports

Posted by nikspatel on June 11, 2010

In the SSRS 2005 and SSRS 2008, one of the biggest limitations of the SSRS integration with the SharePoint technologies in the native mode or integrated mode was that there were are no intuitive ways to report against the SharePoint lists into the Reporting Services reports. Only way you can access the  SharePoint Lists from the SSRS reports is using the XML as a data source to consume the SharePoint lists. Please review my previous blog for more details: http://nikspatel.wordpress.com/2010/04/30/step-by-step-consuming-sharepoint-lists-data-in-the-ssrs-reports/

Like SSRS 2005 and SSRS 2008, although query designer has improved the overall experience of consuming SharePoint 2010 lists in the SSRS 2008 R2, SSRS can still accesses only one list at a time using the SharePoint Lists as a data source. For many real-world scenarios, this could be show stopper where reports need to access the data from the multiple lists and join them together for final presentation. Fortunately, since SSRS supports XML as a data source, SSRS reports can consume data from any custom web service which could be wrapper of multiple SharePoint list web service calls by joining multiple lists into single list required by the SSRS. Alternatively, you can use the SharePoint 2010 list enhancements and list relationships to define the joined list schema in the SharePoint.

In this article, I am going to demonstrate the step by step process to access the Single SharePoint list from the SSRS Reports using SharePoint Lists as a data source. This data source supports inbuilt query designer which would allow end users or developers to select the list, define the parameters and filters on the report without understanding detailed SOAP or CAML as a Query language.

Let’s assume that we have a requirement that we need to create the reports against the SharePoint lists and we need to host the SSRS reports on the SharePoint dashboards. To accomplish this, we need to have SharePoint List, SSRS reports consuming the SharePoint list, and SharePoint document libraries or web part pages to host the SSRS reports. In nutshell, we have a SharePoint as data provider and data presenter and SSRS as Reporting mechanism.

Step 1: Ensure that you have a SharePoint List.

In this demo, we will report against SharePoint Products List.

Step 2: Understand the SharePoint List Web Service Interface.

SharePoint has a lists.asmx web service which provides interface to download the SharePoint lists data in the non-SharePoint systems. You can access the SharePoint list web service using the http://siteurl/_vti_bin/lists.asmx. You can use the GetListItems method which returns dataset to download all the list items for the specific list.

Step 3: Create new Shared Data Source and Report Server Project

Create a new Report Server Project in the Business Intelligence Development Studio (BIDS). First step of configuring the SSRS report is creating the new shared data source. Select the SharePoint List as a data source type and specify the SharePoint Site URL hosting the lists for the connection string.

On the credentials tab, specify either windows authentication or no authentication if anonymous authentication is enabled on the SharePoint Site. Please do no select any other options. None of the other options would work for the SharePoint List Web Service.

Step 4: Create a new Report.

Next steps would be creating the report specific data source and data set to configure the data for the report. Make sure Report Data pane is available in the designer.

Step 5: Create a new Report Data Source.

Using the Report Data pane, create the new report data source. Specify the Shared Data Source as a report data source.

Step 6: Create a new Report Data Set.

Using the Report Data pane, create the new data set. Specify the Report Data Source as a data source. New Query designer support for the SharePoint Lists as a data source, allows the developers (from the BIDS tool) or end users (from the Report Builder tool), browse through the SharePoint lists, select the specific list, and define the filters and parameters without knowing detailed SOAP or CAML query language. As stated earlier, one of biggest limitations of this approach is SharePoint Lists as a data source doesn’t support selecting data from the multiple lists. One way you can avoid joining multiple lists is define the list relationships and bring the additional fields along with lookup column. For more complex joins, you can create the custom web service. Custom web service requires XML as a data source and specify the SOAP command to retrieve the data from the SharePoint Web Service in the query designer.

Here is the sample Query to access the web service through the SharePoint SSRS data interface

<RSSharePointList xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema“>
  <ListName>Product</ListName>
  <ViewFields>
    <FieldRef Name=”Title” />
    <FieldRef Name=”Product_x0020_Line” />
    <FieldRef Name=”Product_x0020_Description” />
  </ViewFields>
  <Query>
    <Where>
      <Contains>
        <FieldRef Name=”Title” />
        <Value Type=”Text”>
          <Parameter Name=”Title” />
        </Value>
      </Contains>
    </Where>
  </Query>
</RSSharePointList>

Step 7: Validate the fields returned by the Data Set

In the Query designer, you can verify if query is valid and returns the fields.
 

Optionally, you can click on the fields tab on the data set to see if query returns the data fields contained by the data set.

Step 8: Design the Report and Preview the Report in BIDS

Once you have properly configured the data source, data set, and fields, you can design the report by dragging and dropping the fields on the report designer. In this scenario, we will create a simple tabular report and preview the report to make sure reports renders fine in the BIDS before publishing to the SharePoint.

Step 9: Deploy the Report to the SharePoint

You can use the BIDS or upload the RDL files to the SharePoint Document Libraries directly.

Step 10: Verify the SSRS Report in the SharePoint
You can use Report Viewer or Report Explorer web parts if SSRS is installed in the native mode to consume the SSRS reports in the SharePoint. Alternatively, you can use the SharePoint SSRS integrated mode to create and consume SSRS reports more collaboratively by enabling the SSRS report content types in the document libraries. In this scenario, we have SharePoint Integrated environment and SharePoint document library is enabled to host the SSRS reports.

Posted in SP2010 & SSRS, SSRS 2008 R2 | Leave a Comment »

Differences between SSRS 2008 and SSRS 2008 R2 Report Data Sources

Posted by nikspatel on June 11, 2010

If you are running SSRS 2008 SP1 for your reporting needs, here is the quick comparison of SSRS 2008 SP1 and SSRS 2008 R2 report data sources. If you need to access SharePoint Lists and Azure databases from the SSRS reports, SSRS 2008 R2 would give you one more reason to upgrade. :)

SSRS 2008 SP1 Data Sources SSRS 2008 R2 Data Sources
Microsoft SQL Server Microsoft SQL Server
OLE DB Microsoft SQL Azure
Microsoft SQL Server Analysis Services Microsoft SQL Server Parallel Data Warehouse
Oracle OLE DB
ODBC Microsoft SQL Server Analysis Services
XML Oracle
Report Server Model ODBC
SAP NetWeaver BI XML
Hyperion Essbase Report Server Model
TERADATA Microsoft SharePoint List
  SAP NetWeaver BI
  Hyperion Essbase
  TERADATA

Figure A: SSRS 2008 SP1 Data Sources (Above)

Figure B: SSRS 2008 R2 Report Data Sources (Above)

Posted in SP2010 & SSRS, SSRS 2008, SSRS 2008 R2 | Leave a Comment »

High Level SharePoint and SSRS Native Mode Integration Deployment Plan

Posted by nikspatel on May 29, 2010

Please note that this post applies to all the versions of the SharePoint and SSRS Integration: MOSS 2007 RTM/SharePoint 2010 RTM Native Mode Integration with the SSRS 2000 Sp2/SSRS 2005 RTM/SSRS 2008 RTM/SSRS 2008 R2 RTM using the SharePoint 2.0 Web Parts.

For more info, please visit this link:  http://msdn.microsoft.com/en-us/library/ms159772.aspx

Assumptions:

  • There are two servers: Report Server – Windows OS and SSRS Pre-requisites installed, and SharePoint Server – WFE Servers in the Active MOSS 2007 Farm.
  • This SharePoint SSRS Native Mode Integration Deployment Plan contains prepare, install/configure, and validation steps.

High Level Deployment Plan in Recommanded Order -

  1. Report Server – Prepare SSRS Install and Configuration Service Accounts
  2. Report Server – Install the SSRS using SQL Installation Disk with “Install but do not configure”
  3. Report Server – Configure SSRS through Reporing Services Configuration Manager in the Native Mode (Specify Report Web Service URL, Report Server Database, and other options like scaled out deployment)
  4. Report Server – Verify the Install and Config – IIS, DB, Services Snap-in
  5. SharePoint Server – Install RSWebParts.Cab file on the SharePoint WFEs (It will install the Report Viewer and Report Explorer web parts)
  6. Report Server – Install the SQL 2008 AdventureWorks DB, Verify Sample DBs are created
  7. Report Server – Install SQL 2008 Reporting Samples
  8. Report Server – Verify SSRS Samples in the BIDS 2008
  9. Report Server – Prepare Report Manger Web Site to host the reports – security, folders etc. Configure the Folders (Allow all domain users – NT AUTHORITY\Authenticated Users) in the Report Manager Web Site.
  10. Report Server – Optionally Configure the Report Manager System Settings for the Report Builder 2.0 (Supported only in the SSRS 2008 SP1)1
  11. Report Server – Deploy AdventureWorks Reports from the BIDS 2008 to the Report Manager Web Site
  12. Report Server – Verify SSRS Samples in the SSRS Report Manager Web Site
  13. SharePoint Server – Prepare SharePoint Envrionent – Web Part Pages to host the Report Viewer and Report Explorer web parts to view the SSRS Reports hosted on the Report Manager Site. Report Explorer web parts allows Report Builder access for Ad-hoc Reports.
  14. SharePoint Server – Validate the Reports are running fine from the SharePoint via web parts

Enjoy..

Posted in SP2010 & SSRS | Leave a Comment »

SharePoint 2010 and SSRS 2008 R2 Integration Improvements

Posted by nikspatel on May 29, 2010

Many organizations might be debating why they need to upgrade their existing MOSS 2007 and SSRS 2005/SSRS 2008 investments to the SharePoint 2010 and SSRS 2008 R2. This post highlights the latest improvements in the SharePoint-SSRS integration.

SharePoint 2010 – SSRS 2008 R2 integration improvements

  • Supports three Modes – Requires SSRS Add-in installed on SharePoint farm for all three modes.
    • Local Mode – Not required SSRS Server, You can upload the RDL file, create data sources directly from SharePoint but you can’t manage them, used by Access Services and native list reporting.
    • Connected Mode – Required SSRS Server – Native Mode and Integrated Mode.
  • Supports the SharePoint Multiple-Zones and AAM – Use the alternate access mapping functionality in your SharePoint environment to access report server items from one or more SharePoint zones (default, internet, intranet, extranet, or custom). This is useful when you have a SharePoint environment that can be accessed by users from multiple zones. It means while referencing the SSRS reports in the Report Viewer Web Part, no need to configure fully qualified URL, relative URL would work fine.
  • AJAX enabled Report Viewer Controls
  • Improved SSRS Add-in – Removed additional hop between Report viewer UI and Proxy, Support for the ULS logging
  • Supports for the Claims based Authentication
  • Allow Installation of RS Add-in as SharePoint 2010 pre-requisite installer. This is required component for the Access Services and List Reports. SSRS is the reporting engine for Access Services reporting – Access reports stored as RDL files in the Sharepoint.

SSRS 2008 R2, BIDS 2008 R2, Report Builder 3.0 Improvements

  • Powerful visualizations including map, sparklines, and tablix - SSRS 2008 introduced tablix and guage controls, SSRS 2008 R2 introduces the maps, sparklines, data bars, and indicator controls.
  • Self-service Grab ‘n Go Reporting using the Report Parts -  Allows endusers to create the report mash-ups. Sharing and reusing report parts common report elements helps to accelerate report creation, cut down costs, and increase end-user adoption.
  • Shared Data Sets
  • Native support for Reporting on SharePoint Lists – SharePoint Lists as a data source, Query designer in BIDS and RB 3.0 supoorts the visual drag and drop of list columns to design the query. No need to write complex SOAP and CAML queries to retrieve the data from the SharePoint Web Service as a XML data source. It supports retrieving one list data at a time. For the multiple joined list, you still need to create custom code like MOSS 2007 (you can use sharepoint APIs or web service APIs to retrieve the data)
  • SQL Azure as report data source
  • PowerPivot Model as a report data source
  • Self-service BI – With SSRS 2008 R2, All your reports instantly become Data feeds. SSRS Report as data sources to PowerPivot for Excel analysis  (ATOM Feed),  Using reports as datasource for Analysis, IW can consume all the operational, corporate reports for their analysis. 
  • Managed Self Service BI – IT provisions data to IWs through secured, well defined, optionally pre-cached reports

Here are more info.
http://technet.microsoft.com/en-us/magazine/ff686706.aspx
http://blogs.msdn.com/b/prash/archive/2010/04/26/integrating-ssrs-r2-rtm-with-sharepoint-2010-rtm.aspx

Hope this will help

Posted in SP2010 & SSRS | Leave a Comment »

SharePoint and SSRS Integration Options

Posted by nikspatel on May 23, 2010

There are several versions of the SharePoint (MOSS 2007 and SharePoint 2010) and several versions of SSRS (SQL 2000 SP2, SQL 2005, SQL 2008, SQL 2008 R2) released so far. Because of these different versions of SharePoint can integrate different versions of the SSRS different ways, this post will provide the different downloads required for different kind of integration.
 
Native Mode Integration:
 
MOSS 2007 RTM/SharePoint 2010 RTM Native Mode Integration with the SSRS 2000 Sp2/SSRS 2005 RTM/SSRS 2008 RTM/SSRS 2008 R2 RTM using SharePoint 2.0 Web Parts
http://msdn.microsoft.com/en-us/library/ms159772.aspx
 
Integrated Mode Integration:
 
Report Server SharePoint Version Add-in Supported?
SSRS 2005 SP2 MOSS 2007 RTM SQL Server 2005 Yes
SSRS  2005 SP3 CU3 SharePoint 2010 RTM ?? ??
SSRS  2008 RTM MOSS 2007 RTM SQL Server 2008 Yes
SSRS  2008 SP1 CU2 SharePoint 2010 RTM SQL Server 2008 No
SSRS  2008 SP1 CU8 SharePoint 2010 RTM SQL Server 2008 R2 Yes
SSRS  2008 R2 RTM MOSS 2007 RTM SQL Server 2008 SP2 Yes
SSRS  2008 R2 RTM SharePoint 2010 RTM SQL Server 2008 R2 Yes
 
MOSS 2007 RTM and SSRS 2005 Sp2 Integrated Mode – Microsoft SQL Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies
http://www.microsoft.com/downloads/details.aspx?familyid=1E53F882-0C16-4847-B331-132274AE8C84&displaylang=en
 
MOSS 2007 RTM and SSRS 2008 RTM Integrated Mode – Microsoft SQL Server 2008 Reporting Services Add-in for Microsoft SharePoint Technologies, April 2009
http://www.microsoft.com/downloads/details.aspx?FamilyID=58edd0e4-255b-4361-bd1e-e530d5aab78f&displaylang=en
 
MOSS 2007 RTM and SSRS 2008 R2 RTM Integrated Mode – Microsoft SQL Server 2008 Reporting Services Add-in for Microsoft SharePoint Technologies SP2. It will not release until Sep 2010. At this moment, this integration is available through Microsoft SQL Server 2008 November CTP Report Services Add-in for Microsoft SharePoint Technologies 2007.
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=44bda62c-0cda-4a99-8d0a-d7fe06b39422
 
SharePoint 2010 RTM and SSRS 2008 SP1 CU8/SSRS 2008 R2 RTM Integrated Mode (official name is connected mode for SharePoint 2010-SSRS integration) – Microsoft SQL Server 2008 R2 Reporting Services Add-in for Microsoft SharePoint Technologies 2010
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=b3bebf9d-d86d-48cd-94e2-0639a846be80
 
Report Builder Download Links:
 
Microsoft SQL Server 2008 Reporting Services Report Builder 2.0, April 2009 – Also released with the SQL Server 2008 SP1
http://www.microsoft.com/downloads/details.aspx?familyid=DBDDC9B6-6E19-4D4B-9309-13F62901B0D5&displaylang=en
 
Microsoft SQL Server 2008 R2 Report Builder 3.0 – Also released with the SQL Server 2008 R2
http://www.microsoft.com/downloads/details.aspx?FamilyID=d3173a87-7c0d-40cc-a408-3d1a43ae4e33&displaylang=en
 
Hope this will be helpful.
Thanks,
Nik

Posted in SP2010 & SSRS | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.