Pawas Goyal CYLSYS Technologies
Agenda Overview of Reporting Services Vision, Application, Lifecycle, Overview Understand Reporting Services Architecture Architecture, VS.NET, Creating Reports – Simple, Chart based, Parameterized, Data Source Details Reporting Services Management WebServices, URL Addressing, Security, Exports, RDL, Extensions, Command line utilities
What is Microsoft SQL Server 2000 Reporting Services? Server-based reporting platform Framework including services, tools, and APIs to implement, deploy, and manage reporting solutions Take advantage of existing SQL Server, Internet Information Services (IIS), and.NET Framework infrastructures Security Scalability Deployment Configuration
Product features – overview (1 of 2) Server-based report storage, processing, and management Rich report designing features Supports a variety of data sources Desktop and Web-enabled reporting On-demand and scheduled processing of reports Report caching and history Role-based security Linked reports
Product features – overview (2 of 2) Importing access reports Modular and extensible architecture Programming interfaces to enable the integration of reporting functionality in custom applications Feature and tool support for every phase in the reporting solution development life cycle Built-in diagnostics – tracing and Performance Monitor counters
Agenda Overview of Reporting Services Vision, Application, Lifecycle, Overview Understand Reporting Services Architecture Architecture, VS.NET, Creating Reports – Simple, Chart based, Parameterized, Data Source Details Reporting Services Management WebServices, URL Addressing, Security, Exports, RDL, Extensions, Command line utilities
Architecture and components
Report Execution lifecycle
Server components The Report Server Web service The Report Server Windows ® service (scheduling and delivery processor) The Report Server catalog The Report Processor Rendering Extensions HTML 4.0, HTML 3.2, Excel,.pdf,.csv, image (TIFF),.pdf, XML, HTMLOWC, and Web archive Delivery extensions File share and
Designing reports – process Defining report data sources and DataSets Defining the basic report layout Enhancing the report layout Using report expressions to control style and formatting Using report expressions to generate values for report Items Adding interactive features Previewing the report to verify functionality
Deploying reports to a report server Publishing report folders, reports, shared data sources, and resources to a report server Deployment options Deploying a report project from the Report Designer Manually creating report folders and uploading report items using the Report Manager Implementing and using administrative scripts to create report folders and deploy report items
Expressions Most properties take expressions Expressions use VisualBasic.NET syntax Values from the data sets Values of other items on the report Values of global properties and user properties Aggregates: Sum, Avg, Count, Min, First, etc. Examples =Fields!Name.Value =Fields!First.Value & " " & Fields!Last.Value =Sum(Fields!Sales.Value) =IIF(Sum(Fields!Sales.Value)>10, "green", "red")
Parameters Report parameters can be used in report expressions (including binding to query parameters) Set of valid values and default values can be static or query-based Parameters can be hierarchical Selection of parameter value can drive later valid values Accessed using global Parameters collection, e.g. =IIF(Fields!Sales.Value > Parameters!Goal.Value, “PASS", “FAIL")
Making Reports Interactive Actions can be added to report items Drill down within a report Drill through to a different report Bookmarks jump within a report Hyperlinks any web page Document map shows report structure
Code Libraries Assemblies can be added to report to provide user- defined functions Build any code in Visual Studio.NET Language Expressions can refer to functions
Importing Reports Microsoft Access XP only Charts and code-behind are not imported Redesign your top reports to use Reporting Services features, especially table and matrix
Agenda Overview of Reporting Services Vision, Application, Lifecycle, Overview Understand Reporting Services Architecture Architecture, VS.NET, Creating Reports – Simple, Chart based, Parameterized, Data Source Details Reporting Services Management WebServices, URL Addressing, Security, Exports, RDL, Extensions, Command line utilities
Report Management Report definitions, folders, and resources are published and managed in a reporting web service; Managed reports can be executed either on-demand or via schedule and are cached for consistency and performance Management ReportDefinition DeliveryChannels OnlineAccess AuthoringManagementDelivery Managed Report
Configuring and managing a report server Report execution and caching Report history Data source connections Role-based security Subscriptions and delivery Managing schedules Configuring site-wide settings Tool support – The Report Manager Note: SQL Server Reporting Services configuration and management data is stored in Report Server catalog database.
The Report Manager (1 of 2) Web-based report server management and report access tool An ASP.NET Web application Uses the Reporting Services programmatic interfaces Default installation folder: :\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\Report Manager Access URL: /Reports
The Report Manager – browsing a report folder
The Report Manager – viewing a report
Configuring report execution and caching
Configuring report history
Configuring data source connections
Site-wide settings
Role-based security – system level
Role-based security – item level
Defining item-level role-based security
Subscriptions and delivery (1 of 2)
Subscriptions and delivery (2 of 2)
Schedules Use cases Schedule report delivery for subscriptions Schedule report history generation Schedule snapshot updates Schedule cached report expirations Types Item specific Shared
Schedule definition UI
Accessing reports Viewing reports in Internet Explorer using the Report Manager Integrating report rendering in custom applications URL access Web service API Exporting reports to a desktop format Printing reports
URL Addressability Virtual Roots Report Server Web Service Interface Parameter directives Report Server Web Application SSL Support Fully localized Based on language in HTTP header
URL Parameter Directives Report Server Parameters (rs:) Performance optimization avoids item type check Example: rs:Command=Render Rendering Device Info (rc:) Name/Values pairs specifying information about the format being rendered to (i.e., FindString, Section, Zoom, etc.) Unique per Rendering Extension Example: rc:Section=7&rc:HTMLFragment=true
URL Parameter Directives Report Parameters Parameter names must match report definition Example: CategoryID=1&EmployeeID=1 User Credentials (dsu: and dsp:) Credentials for each report data set Example: dsu:DataSet1=MyUserName& dsp:DataSet1=MyPassword Can also use HTTPS POST Use Secure Protocols!
Reporting Services programming URL access Syntax: value[&[prefix]:param=value]...n] Web services API WSDL URL: ervice.asmx?WSDL Embedded code Custom assemblies Windows Management Instrumentation (WMI) provider
Report Delivery Single report definition can be rendered to diverse output formats Web Formats (HTML 4, HTML 3.2, HTML w/OWC) Print Formats (TIFF, RTF, PDF) Data Formats (Excel, XML, CSV) Personalized and administrator defined subscription and delivery Ability to select output formats per subscription Can deliver links as well as rendered reports Data-driven subscriptions for personal delivery Extensible delivery provider architecture , File System, Custom
Working from Command Line You can write scripts to administer and manage a Report Server rs utility executes the scripts Activate a Report Server and it’s Windows Service rsactivate allows to do so Configure the Report Server settings rsconfig utility Retrieve and apply the symmetric key used for encryption of passwords rskeymgmt utility
Resources Reporting Services Home Technical Overview - overview.asp overview.asp CAS and Reporting Services - rary/en- us/dnsql2k/html/dngrfCodeAccessSecurityInSQLServe r2000ReportingServices.asp rary/en- us/dnsql2k/html/dngrfCodeAccessSecurityInSQLServe r2000ReportingServices.asp
Questions? You can ask now me at
Thank You