Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Reporting Services
Dave Henson
dhenson@certifiednetworks.com
Why Use SSRS
• Secure Deployment of Professional
Reports
• Accessible Anywhere – web based
• Define one report, render to many formats
– Html
– Pdf
– Xml
• Integrated with SQL 2008
• Easily extensible for .net developers
Course Outline
• Module 1: Introduction to Microsoft SQL
Server Reporting Services(SSRS)
• Module 2: Authoring Basic Reports
• Module 3: Enhanced Reporting
• Module 4: Manipulating Data Sets
• Module 5: Managing Content
• Module 6: Administering SSRS
• Module 7: Programming SSRS
Course Logistics
• Class Format
– 50% Lecture & Demonstrations
– 50% Lab
• Course Dates
• Course Hours
• Lunch
Definitions
• SSRS •IIS
• RDL •SQL
• XML •Visual Studio .Net 2005
• Business Intelligence (BI)
• OLTP
• OLAP
• OLEDB
• .Net
Reporting Lifecycle
• Authoring to create .rdl file
• Management
– Security
– Deployment
• Delivery
– Pull
• Report Manager
• Custom App
– Push
• Email
• Custom App
Reporting Services Scenarios
• Internal
• External
• Embedded – online portal
• Content:
– Standard, Crosstab, Charting, Graphics
• Report Manager
– http://localhost/reports
SSRS Components
• Application layer
– Report Authoring
• Standard
• Ad Hoc
– Report Server Management
• Server Layer
– Report Server
– Report Processor
• Data Layer
– Any OLEDB Datasource
Authoring Components
• Report designer
templates added to Visual
Studio during install
• Report Builder
– Thin client .net app
installed through browsing
– Uses a published report
model to build query
• Reporting Services API
for authoring
Management Components
• SSRS Configuration Tool
• Report Manager
• Command Line
– Rsconfig
– Rs
– Rskeymgmt
• SSRS API
Report Delivery Components
• Report Manager
• Report Processor
• Scheduling and Delivery Processor
Server Extensions
• SSRS fully exposed through .net libraries
• Extensibility
– Authentication
– Data Processing
– Report Processing
– Rendering
– Delivery
Installation
• Prerequisites
– Windows Server (2003/2008)
– IIS
– SQL Server – local to machine or otherwise
• Versions
– Workgroup(Express)
– Standard
– Enterprise
– Trial
Server Configuration
• IIS
• Security Accounts
• SSRS Config Manager
• SSRS Services and accounts
– Windows Service
– Web Service
– Impersonation
SSRS Quick Tour
• Demonstration of basic reporting:
– Create BI Project
– Add Datasource
– Add Dataset
– Design Report
– Deploy Report
Module 2: Authoring Basic
Reports
Visual Studio 2008 – New BI
Project
Data Source Setup
Adding the dataset
Structuring Data in the Report
Report Layout and Presentation
Publishing the Report
Managing the Report
Accessing the Report
Module 3: Enhanced Reporting
Parameters
• Replace items in where clause with sql
named parameters
• 0N = number: 100.99
• 0C = money: $100.99
Filters
• Blanket reduction of rows returned from
the dataset
Data Regions
• Areas on report with repeated data:
– Table: fixed columns
– Matrix: variable columns
– List
• Subreports
Actions
• Link a report item to data stored elsewhere
– Report
– Url (.aspx, .php, .htm)
Visibility
• Use “Hidden” property to hide fields, rows,
etc.
• .Net libraries
Enabling User Reports
• Enable a My Reports folder for each user
Report Builder
• .net library delivered over the web
• Example: Firefox
– Width: single pixel clear gif, width of 6.5 in
– Height: modify reportingservices.css
• .DocMapAndReportFrame{min-height: 860px;}
Module 6: Administering SSRS
Reporting Services Files and
Folders
• C:\program files\Microsoft SQL
Server\MSSQL.3\Reporting Services
• Compilers:
– Csc.exe
– Vbc.exe
HTTP Protocol
• HTTP Post
• HTTP Get
• WebForms
Custom Web Reporting Portal
• Add Parameters to url:
– &rc:ParmName=ParmValue
• To Hide parameters
– &rc:Parameters=false
– &rc:Toolbar=false