Search this blog

Showing posts with label SQL Server Reporting Services. Show all posts
Showing posts with label SQL Server Reporting Services. Show all posts

Thursday, February 23, 2012

How Reporting Services Works?


Here I’ve explained briefly on how Reporting service requests are handled through the components of SSRS architecture.
As shown in the diagram: Firstly, request will be received by Reporting server’s OS through Http.sys Driver, the driver will route the communication to reporting service’s Web service.  Http Listener will receive the request which will be re-routed by Http.sys.
Http Listener transfers the request to Security sub layer (SSL) for authentication.  Requestor is identified using 4 different authentication mechanisms like Kerberos, NTLM, Negotiate and basic authentication.
Each mechanism supports different approach. Once user has been authorized by SSL, user communication will be redirected to either Report Manager or Report Server which is hosted in RS web services (refer the exhibit). These two components will read the report definition, report details like parameter, building report query, and some of the activities which are listed below, etc., will be done with the help of Core Processing unit.
Activities of Core Processing component are:-
  • Scheduling
  • Subscription Management
  • Report Processing
Upon completion of processing all SSRS components, Report output will be rendered on report viewer.
Hope this is helpful!

Friday, February 17, 2012

SSRS 2008 - Subscriptions Types

Usually the term, Subscription is used for a fixed set of services, such as one copy of each issue of a magazines, newspaper for a certain period of time

SSRS subscriptions allow developer to help the users/clients by configuring the subscription, which will deliver the reports into the hands of your users/clients based on predefined schedule, or at specific event, such as data changes, updates., etc.,

SQL Server Reporting services support two types of subscription as classified below
1. Standard Subscriptions
2. Data Driven Subscriptions

Standard Subscriptions
·  This subscription is created and managed by Individual users, it gives more freedom to its user
·  It consists of default pre-defined parameter values which will not varied during subscription process
·  In this subscription, a report is rendered in a specific format with default parameter, and delivered to a single, pre-set location

Data Driven Subscriptions
·  This subscription is used to call as Dynamic Subscription.
· It is more flexible and better for managing delivery of reports to a larger number users with varying needs.
· To use data-driven subscriptions, you must have expertise in building queries and an understanding of how parameters are used. Report server administrators typically create and manage these subscriptions.
· You might use data-driven subscriptions if you have a very large recipient list or if you want to vary report output for each recipient.

By Default, Subscription delivery is limited to e-mail transmittal

Thursday, February 16, 2012

SSRS 2008 Command Line Utilities

Microsoft has provided following three utilities for managing the reporting server activities.
1.    RS.exe
2.    RSConfig.exe
3.    RSKeyMgmt.exe
These tools are more useful for configuring SSRS scale-out deployment, sharing encryption keys, managing SSRS objects like reports, data Source, etc.,

RS.exe
This utility helps to execute the VB.NET Scripts for automating the reports deployment. This tool support only when “Reporting services” not running in SharePoint Integrated Mode

Here are the parameters for RS.exe, which is used for deploying reports:


Parameter
Description
/i
Input .rss file for execution
/s
URL to SSRS virtual directory
/u
Username
/p
Password
/l
Timeout in seconds; default is 60 seconds
/b
Batch command execution
/e
SOAP endpoint used; default is mgmt2005
/v
Global Variable mapping
/t
Trace log output goes to SSRS


Utility Location: <Drive:>\ Program Files\Microsoft SQL Server\100\Tools\Bin\rs.exe

RSConfig.exe
                                    
RSConfig utility helps to modify/manage the connection information of report services database

Here are the parameters for RSConfig.exe. Note that you will need to use quotation marks if any of the parameters e.g. database name contain a space:


Parameter
Description
/m
Remote server name; default is localhost
/i
Instance name, if a named instance is used
/c
Connection
/s
Database server name
/d
Database name
/a
Authentication method; either Windows or SQL authentication
/u
Username
/p
Password
/t
Trace log output goes to SSRS
/e
Unattended report execution; also needs /u and /p


Utility Location: <Drive:>\ Program Files\Microsoft SQL Server\100\Tools\Bin\rsconfig.exe

RsKeymgmt.exe

This utility helps to manage the encryption key as well as it shares the encryption key to share with other Reporting services installation or instance.

Here are the parameters for RSKeyMgmt.exe:

Parameter
Description
/a
Restored and overwritten
/d
Deletes the key and encrypted data
/e
Extract key for backup to a file
/f
Filepath parameter for /a or /e parameter
/i
Named instance
/p
Password
/t
Trace log output goes to SSRS
/j
Adds a remote SSRS instance to the local Report Server database. /m (report server) and /n (instance name) are used with this parameter; /i refers to the local named instance
/r
Removes an SSRS instance from the scale-out deployment; use the GUID Installation ID to specify the instance
/u
Account name of the remote SSRS instance (optional)
/v
Password for the local admin of the remote SSRS instance (optional)
/m
Remote server name for /j
/n
Remote instance name for /j


Utility Location: <Drive:>\ Program Files\Microsoft SQL Server\100\Tools\Bin\rskeymgmt.exe

Wednesday, February 15, 2012

Reporting Tools Vs. Reporting Life Cycle

I have posted the stages of Reporting life cycle in my previous post. In this post, we will see, how SQL Server Reporting services is supporting full reporting life cycle?
Microsoft has provided collection of tools and services to implement/follow the Life cycle processes. 
Refer the following tables which is classified in form of “Reporting Tools” Vs. “Reporting Life Cycle”


Hope it Helps!

Reporting Life Cycle:-

Reporting life cycle is described as following three phases and listed sequential processes in each phase:-

1. Authoring:
a. Requirement  Gathering
b. Design and Clarification
c. Data & Requirement validation/verfication
2. Management
a. Publishing reports
b. Report configuration for end user access
c. Enhancement
3. Delivery
a. End user consumption in terms of viewing reports
b. On demand request (Pull Methods)
c. Subscription on a predefined schedule (Push Methods)

Wednesday, February 8, 2012

Architecture Changes Between SSRS 2005 Vs. 2008

There are major changes between SSRS architecture 2005 and 2008. Have a look at the following exhibit first then go thru changes listed below: -

SQL Server Architecture 2005:-

SQL Server Architecture 2008:-
New Changes in SSRS 2008:-
1. Initially, all the SSRS related applications, services and utilities were running as an individual segment. In 2008, these components are merged as single windows service segment. It makes our jobs simple, easy to manage, deploy, configure the SSRS Objects

2. Report server no longer dependent on IIS. Instead, http.sys is used to handling authentication.  Http.Sys is called as HTTP Server API. In general word, HTTP.sys is just a driver, which allow us to communicate the clients (browser) with Report Server without Microsoft Internet Information Server(IIS). Also SSRS 2008 has all IIS components which require functioning without having any dependency with IIS.
 
3.Moving away from IIS, two major actions to be taken care by SSRS components:
 
 a.    Disabling some of the functionalities IIS handles which there are no equivalent in SSRS 2008, such as anonymous, client certificate and ISAPI.
 
 b. Enabling some of the functionalities that IIS used to handle for SSRS before. Things such as ability to add virtual directory, port, SSL certificate, logging mechanism and so on…
 
4. Report Server uses shared components from SQL Server, such as SQL CLR for ASP.NET management, network interfaces, and memory management capabilities. This implies that any advances in administration and logging in SQL Server can be leveraged in SSRS in future releases.
 
5. CLR Host – All the SSRS components are running under the control of CLR. So CLR is act as host.
 
6. the Report Manager application and the Report Server web service have been combined into a single Windows service
 

Wednesday, October 26, 2011

Reporting Services and SharePoint - Context Expired Exception

Problem: 
When trying to open a report or even looking at a data source, SharePoint would throw an exception: "Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: The context has expired and can no longer be used. " 

Solution:
I tried the usual remedy steps such as IISRESET and rebooting the server. I then tried to repair the RS Add-In and even run the SharePoint Configuration Wizard. Nothing was working, but I did notice in the logs that the timestamps were not the right time. 

After several other actions, I decided to fix the clock on the server to have the correct time. Wow ... This resolved the context issue and everything started working. The clock was so much different than any client machine that the security context was assumed to be expired.

Thursday, April 14, 2011

Difference Between ReportServer Database Vs ReportServerTempDB

ReportServer
ReportServerTempDB
It Stores information about the report schema, report property, data sources, parameters, stores the folder hierarchy, report Execution log
It stores only the cached copy of the report data.
It always exists until changes on the RDL Schema
It expires based Expiry settings
It helps to access the structure
It helps to improve the performance of report execution as it is loading data from cache
Data always exists during SSRS service restarts
Services restarts will clear the Temp Data