Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SQL Server Reporting Services


Published on

Brief introduction to SQL Server Reporting Services

Published in: Technology
  • Be the first to comment

SQL Server Reporting Services

  1. 1. SQL Server Reporting Services (SSRS) Jarosław Dobrzański 2009/01/12
  2. 2. Agenda <ul><li>Background </li></ul><ul><li>Architecture </li></ul><ul><li>Designing Report </li></ul><ul><li>Managing Report </li></ul><ul><li>Delivering Report </li></ul><ul><li>Further Reading </li></ul>
  3. 3. Background <ul><li>Server-based solution </li></ul><ul><li>Part of Microsoft Business Intelligence framework </li></ul><ul><li>Create, manage, deliver paper-oriented and interactive Web-based reports </li></ul><ul><li>Competitors: </li></ul><ul><ul><li>Crystal Reports </li></ul></ul><ul><ul><li>Jasper Reports </li></ul></ul><ul><li>Prerequisities: </li></ul><ul><ul><li>SQL Server Express 2005/2008 </li></ul></ul><ul><ul><li>Reporting Services </li></ul></ul><ul><ul><li>Business Intelligence Development Studio </li></ul></ul>
  4. 4. Architecture
  5. 5. Designing Report <ul><li>Business Intelligence Development Studio – Visual Studio shell </li></ul><ul><li>Three steps: </li></ul><ul><ul><li>Data – what? (query, stored procedure ) </li></ul></ul><ul><ul><li>Layout – how? (MS Office paradigms) </li></ul></ul><ul><ul><li>Preview – test </li></ul></ul><ul><li>Result – report as RDL (Report Definition Language) file </li></ul><ul><li>Alternative – Report Builder </li></ul>
  6. 6. Managing Reports <ul><li>Report Manager – http://SERVER/Reports </li></ul><ul><li>Deployed on IIS </li></ul><ul><li>Aministrate single report server instance </li></ul><ul><li>View, search, print reports </li></ul><ul><li>Define role-based security </li></ul><ul><li>Launch Report Builder (create ad-hoc report) </li></ul>
  7. 7. Delivering Reports <ul><li>Report Server - http:// SERVER /ReportServer/?XXX&rc:parameters=false&rs:Command=Render&ParamName=ParamValue </li></ul><ul><ul><li>XXX – report </li></ul></ul><ul><ul><li>ParamName – parameter name </li></ul></ul><ul><ul><li>ParamValue – parameter value </li></ul></ul>
  8. 8. Delivering Reports <ul><li>ReportViewer Controls </li></ul><ul><ul><li>View reports even hosted locally </li></ul></ul><ul><ul><li>For: ASP.NET and Windows apps </li></ul></ul><ul><li>ASP.NET apps: </li></ul><ul><ul><li>Change extension from RDL to RDLC </li></ul></ul><ul><ul><li>Configure control: use RDLC file, define DataSource </li></ul></ul><ul><ul><li>Code behind: additional logics, e.g. confirm current user can view particular report </li></ul></ul><ul><ul><li>Pass parameters: </li></ul></ul><ul><li>ReportParameter p = new ReportParameter(PARAM_NAME, PARAM_VALUE); </li></ul><ul><li>reportViewer.LocalReport.SetParameters(new ReportParameter[] { p }); </li></ul>
  9. 9. Further reading <ul><li>Homepage: http:// </li></ul><ul><li>Tutorial: Creating a basic table report: </li></ul><ul><li>Tips and Tricks: http :// </li></ul>