Reporting Services
Reporting Services
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
Definitions
SSRS RDL XML Business Intelligence (BI) OLTP OLAP OLEDB .Net IIS SQL Visual Studio .Net 2005
Reporting Lifecycle
Authoring to create .rdl file Management
Security Deployment
Delivery
Pull
Report Manager Custom App
Push
Email Custom App
Content:
Standard, Crosstab, Charting, Graphics
SSRS Architechture
Report Server
http://localhost/reportserver
Report Manager
http://localhost/reports
SSRS Components
Application layer
Report Authoring
Standard Ad Hoc
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
Management Components
SSRS Configuration Tool Report Manager Command Line
Rsconfig Rs Rskeymgmt
SSRS API
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
Parameters
Replace items in where clause with sql named parameters Use a query to populate a dropdown for the parameter
Formatting
Use .Net formatting rules in the format property: 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. Use the ToggleItem property for interactive control of visibility
Recursive Groups
Using Parent Grouping in the Grouping Properties for recursive display Use the Level function to identify the relationship of the current row to the top row
=Level(RecursiveGroup)
IIS Session
Report execution is stored by default in user session Cached instances share the report across multiple sessions(multiple visitors)
Snapshot Reports
Report is executed on a scheduled basis and delivered to a folder
Report parameters
Parameters used as a filter can be used against the snapshot data
Calculation Load
Structure of your query defines the load point of running the report:
SQL Backend Reporting Services Engine
Manual Caching
Running an SQL job to create a table with the results of a report
Pre-aggregating
Publishing Content
Report Designer Report Manager SQL Server Management Studio Rs.exe and .rss file .Net libraries
Report Builder
.net library delivered over the web Allows power users to create their own reports Requires a report model be published by admin
Describes tables and relationships Published as SMDL file Data Source View (DSV) enables subset of base data
Reverse-Scripting Objects
Visual Studio Script Generation .rss script file can be used with the rs.exe utility
Data Sources
Updates needed through time
Report Manager Visual Studio .Net 2005
Report Subscriptions
Supports the push model of reporting
Example: Firefox
Width: single pixel clear gif, width of 6.5 in Height: modify reportingservices.css
.DocMapAndReportFrame{min-height: 860px;}
Timeouts
Connection:
Connection Timeout Command Timeout Lock Timeout
Suspending Jobs
Subscriptions Shared Schedules
Assigning Roles
Windows Accounts Using runas for testing
Ctrl right click internet explorer Choose runas Supply another windows login for execution
Folder Security
Site Security
System Administrator System User
SSRS Extensibility
Client Reporting Interface Management/Administration
Tools
Reporting Services Command Prompt
Rs.exe Rsconfig.exe
Compilers:
Csc.exe Vbc.exe
HTTP Protocol
HTTP Post HTTP Get WebForms
To Hide parameters
&rc:Parameters=false &rc:Toolbar=false
Example Contd.
// Set RDL file reportViewer.LocalReport.ReportPath = @"c:\tmp\productlist.rdl"; // Supply a DataTable corresponding to each report data source reportViewer.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", DBUtil.GetProducts()));