Apr 27, 2015

SSRS Interview Questions & Answers (Part-4)

Q: Is SSRS support other database except MS SQL Server?
Yes. SSRS can be building based on relational or multidimensional data source like Oracle, OLEDB. ODBC etc

Q. What is Tabular Report in SSRS?
Tabular report is the simplest of the SSRS Report. It lets you just simply display the data using table.
Tabular Report Step by Step Example...

Q: What is a Matrix in SSRS?
A matrix is a data region linked to a report set. Matrix allows us to create crosstab reports with the report variables displaying on rows and columns. It allows us to drag and drop fields into it.
Matrix Report Step by Step Example...

Q: What is Query parameter in SSRS?
Query parameter is mentioned in the query of the data-source that is to be included in the SQL script’s WHERE clause of the SQL that can accept parameters. Query parameters begin with the symbol @.The name should not contain spaces and can not begin with numeral. For clarity, we use only letters.
Query Parameter Step by Step Example...

Q: What are Sub Reports and how to create them?
A sub report is like any other reports which can be called in main report and can be generate through main report. Parameters can be passed from main report to sub report and basis of that report can be generated.
Sub Report Step by Step Example...

Q: What is the chart in report?
Chart reports are for graphical representation. You can get pie charts columns harts and various other options. 3D charts are also available in reporting services.

Q. What is RowNumber function?
RowNumber returns a sequential number to every row within the specified scope.
RowNumber Example...

Q: How to add the custom code in Report?
To add the custom codes in report go to report tab on top then properties and there you will find the options for custom code.

Q: In case you have filters in your report, when filters will be applied in Cached Report instance?
Filters are applied when a report is rendered, Filters will not create a new cached instance on the Report Server.
Filter Parameter Step by Step Example...

Q: What are data regions?
Data regions are report items that display repeated rows of summarized information from data-sets.

Q: You want to generate a report that is formatted as a chart. Can you use the Report Wizard to create such a report?
No, the Report Wizard lets you create only Tabular and Matrix reports. you must create the chart report directly by using the Report Designer.

Q: Can we use data-grids for our report in SSRS?
We have an ASP.NET project that populates a data-grid. Using data-grid as my data-source for my report using SQL Server Reporting Services. Is this possible? The simple answer is no. However, nothing's ever simple. A set of reporting controls was added in Visual Studio 2010 allowing you to report in a data-set, on data that was supplied by you. So, if you retrieved your data into a data-set, bound the data-grid to the data-set so it had data to display, you could then use that data-set as the data-source for the reporting controls. These are then client-side reports, not server reports though.

SSRS Interview Questions & Answers (Part-3)

Q: What is report snapshot?
Snapshot means a instance of a report for future reference, that means a copy of report (data is freezed) will be saved on a report server for future reference.

Q: What are Data Driven Subscriptions?
Reporting Services provides data-driven subscriptions so that you can customize the distribution of a report based on dynamic subscriber data. Data-driven subscriptions are intended for the following kinds of scenarios: Distributing reports to a large recipient pool whose membership may change from one distribution to the next. For example distribute a monthly report to all current customers. Distributing reports to a specific group of recipients based on predefined criteria. For example send a sales performance report to the top ten sales managers in an organization.

Q: When to Use Null Data driven Subscription?
Create a data-driven subscription that uses the Null Delivery Provider. When you specify the Null Delivery Provider as the method of delivery in the subscription, the report server targets the report server database as the delivery destination and uses a specialized rendering extension called the null rendering extension. In contrast with other delivery extensions, the Null Delivery Provider does not have delivery settings that you can configure through a subscription definition.

Q: How to fine-tune Reports?
To tune-up the Reporting Services, follow the below mentioned ways: - Expand the Server or utilizing the reporting services of another database server. For better embedding of report contents, report application’s logic and characteristics can have a duplicate copy of data. - Replication of data continuously. Using (nolock), the issues of locking can well be resolved and the performance of the query can be improved. This can be done by using dirty read at the time of duplicating the data is unavailable.

Q: User wants only to display only PDF as export option in report Manager. How to achieve this?
You need to edit RsReportServer.Config file to limit the exporting extensions to only PDF.
You can find the file under;
%Program Files%\Microsoft SQL Server\MSRS10.\Reporting Services\ReportServer\

Q: Can you import Microsoft Excel data to SSRS?
Reporting Services does not import data. It only queries data in whatever format it is stored in their native storage system. I will assume that you're asking whether you can create reports and use Excel spreadsheets as data sources. The answer is Yes, Reporting Services supports a wide variety of data sources, including Excel files. You'll get the best performance with the built-in native .NET providers but you should be able to connect to any ODBC or OLE-DB data source, whether it comes from Microsoft or a third-party company.

Q: Difference between Logical Page and Physical Page in SSRS.
Logical page breaks are page breaks that you insert before or after report items or groups. Page breaks help to determine how the content is fitted to a report page for optimal viewing when rendering or exporting the report. The following rules apply when rendering logical page breaks: Logical page breaks are ignored for report items that are constantly hidden and for report items where the visibility is controlled by clicking another report item. Logical page breaks are applied on conditionally visible items if they are currently visible at the time the report is rendered. Space is preserved between the report item with the logical page break and its peer report items. Logical page breaks that are inserted before a report item push the report item down to the next page. The report item is rendered at the top of the next page. Logical page breaks defined on items in table or matrix cells are not kept. This does not apply to items in lists.

Q: Name few Endpoints exposed by SSRS 2012?
  • Management Endpoints
  • Execution Endpoint
  • SharePoint Proxy Endpoints

Q: What are the new features are introduced in SQL Server 2012 reporting services?
  • Power View - interactive data exploration
  • SQL Server 2012 is fully integrated with SharePoint
  • Introduction to Data Alerts, data alerts are a data-driven alerting solution that informs you about changes in report data that are of interest to you, and at a relevant time
  • SQL Server Data tool
  • New rendering extensions supports MS Office 2010
  • Project Crescent is being introduced

Q: What new data source types were added in SSRS 2014?
In addition to the data source types available in SSRS (SQL Server, Oracle, ODBC, OLE DB), the following have been added in SSRS 2012: SQL Server Analysis Services SQL Server Integration Services SQL Server Report Builder Models XML (through URL and Web services)

SSRS Interview Questions & Answers (Part-2)

Q: What are the drawbacks of reporting in SSRS?
For many years, Microsoft had no direct solution for reporting with the SQL Server besides Crystal Reports. Now, they have SQL Server Reporting Services, but it does have several drawbacks. It is still complex to understand the complete functionality and structure of this new component, and many users are still relying on the reporting application they are more familiar with, which is Crystal Reports. Also, components in SSRS like Report Builder and Report Designer are meant for different users for different aspects of the report process, yet complete understanding and exposure to both is important to utilize both functions fully and extensively. There are also issues when exporting very large reports to Microsoft Excel, as it can lead to a loss of data.

Q: What are the three different part of RDL file explain them?
In visual studio RDL files has three parts.
  • Data: It contains the dataset on which we write the query. Data set is connected with data source.
  • Design: In design you can design report. Can create tables and matrix reports. Drag columns values from source.
  • Preview: to check the preview after the report run.

Q: Which language rdl files made of?
RDL files are written in XML.

Q: Can you edit the .rdl code associated with a linked report?
No, because a linked report has no .rdl code of its own. It refers to the .rdl code of the base report

Q: What is report rendering ?
Exporting a report data with design o different type of file types is knows as Report rending. SQL Server Reporting Services supports multiple rendering extensions like Word, Excel, CSV, PDF, HTML etc.

Q: What are the different types of data sources in SSRS?
SSRS use different data source. Some of them are listed below.
  • Microsoft SQL Server
  • Oracle
  • ODBC
  • SQL Server Analysis Service
  • Report Server Model
  • SAP Net weaver BI
  • Hyperion
  • Teradata
  • XML

Q: What is the name of reporting services config file and what’s it’s used for?
Reporting service config file is used for report configuration details. It contains the report format and also the report import types. Report service config reside at ISS.

Q: What are Advantages of SSRS or why we should use SSRS?
The SQL Server Reporting Services or SSRS has some Advantages
  • It is faster and cheaper
  • Efficient reporting access to information residing in both Oracle and MS SQL Server databases
  • No need for expensive specialist skills
  • The default report designer is integrated with Visual Studio .NET so that we can create application and its reports in the same environmen
  • The security is managed in a role-based manner and can be applied to folders as well as reports
  • Once parameters are defined, the UI for these parameters is automatically generated
  • Subscription based reports are automatically sent by mail to the users

Q: What are the limitations/drawbacks or SSRS 2008 R2?
The SSRS 2008 R2 has some limitations. Some limitations are given below:
  • There is no print button. In order to print need to export excel, PDF or others format
  • It is very hard to debug expression or custom code
  • Its does not use page number or total pages in report body
  • Don’t support rounding rectangle
  • There is no way to pass values from sub-reports to main report
  • It is not possible to insert a sub-report into the page header or page footer
  • Page header creates extra spaces in the next pages

Q: What are the Export Options of SSRS?
SSRS allow many ways of rendering the reports:
  • Excel
  • Acrobat
  • Tiff (image)
  • XML
  • CSV

SSRS Interview Questions & Answers (Part-1)

Q: What is SSRS?
  • SSRS or SQL Server Reporting Service is a server-based report generation software systems from Microsoft and is part of Microsoft BI.
  • It is used for preparing and delivering interactive and variety of reports.
  • It is administered through an web based interface.
  • Reporting services utilizes a web service interface for supporting and developing of customized reporting applications.
  • SSRS lets you create very rich reports (Tabular / Matrix / Graphical/Interactive) from various datasources with rich data visualization (Charts, Maps, sparklines)
  • SSRS allows are reports to be exported in various formats (Excel, PDF, word etc)

Q: Explain SSRS Architecture?
Reporting services architecture comprises of integrated components. It is a multi-tiered, included with application, server and data layers. This architecture is scalable and modular. A single installation can be used across multiple computers. It includes the following components: -
Report Manager, Reporting Designer, Browser Types Supported by Reporting services, Report server, Report server command line utilities, Report Server Database, Reporting Services Extensibility, Data sources that is supported by Reporting Services.

Q: Explain Reporting Life Cycle?
Reporting Services has mainly three phases:
  • Development of Reports (Developer) – First of all a report needs to be design which is primarily done by report developer
  • Management of Reports (DBA) – Once the Report is being developed, DBA need to ensure
    • Security – Only authorized user should access the report
    • Execution – How the report will be executed to optimize data sources performance
    • Scheduling of reports – so that report are executed on scheduled timings
  • Report Delivery (DBA + Developer) – Once the report is being developed and executed now the report should be reached to final recipients (business users) who are going to understand / analyze report data. if any changes, we again go back to development stage.

Q: What are the Reporting Services components?
Reporting services components assist in development. These processing components include some tools that are used to create, manage and view reports.
  • Report Designer is used to create the reports.
  • Report Sever is used to execute and distribute reports.
  • Report Manager is used to manage the report server.

Q: SQL Server Reporting Services vs. Crystal Reports.
Crystal reports are processed by IIS while SSRS have a report server. Caching in Crystal reports is available through cache server. On the other hand, caching in SSRS is available for Report history snapshots. Crystal reports have standards and user defined field labels. SSRS allows only user defined field labels.

Q: How does the report manager work in SSRS?
Report manager is a web application. In SSRS it is accessed by a URL. The interface of this Report manager depends on the permissions of the user. This means to access any functionality or perform any task, the user must be assigned a role. A user with a role of full permissions can entire all the features and menus of the report. To configure the report manager, a URL needs to be defined.

Q: How can I add Reporting Services reports to my application?
Visual Studio / SSDT / BI Data Tools (Standard and Enterprise editions) contains a set of freely redistributable Report Viewer controls that make it easy to embed Reporting Services functionality into custom applications. Two versions of the Report Viewer exist, one for rich Windows client applications and one for ASP.NET applications.

Q: Do I need a report server to run reports in my application?
In addition to publishing reports to a report server, you can build reports using the Report Designer that is directly integrated with Visual Studio language projects. You can embed reports directly in any Windows Forms or ASP.NET Web application without access to a report server. The data access in embedded reports is a natural extension of the Visual Studio data facilities. Not only can you use traditional databases as a source of data for your reports, you can use object collections as well.

Q: What are different types of roles provided by SSRS?
  • Browsers
  • Content Manager
  • My Reports
  • Publishers
  • Report Builder

Q: Name and Describe few console utilities for SSRS?
  • RSConfig.exe: Configuration of connection properties between the Report Server to the repository database.
  • RSKeyMgmt.exe: Management of encryption keys via command-line
  • RS.exe: Utility used for deploying the report on report server