SSRS Interview Questions (1) .Odt
SSRS Interview Questions (1) .Odt
Yes. SSRS can be building based on relational or multidimensional data source like Oracle,
OLEDB. ODBC etc
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.
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.
1. You want to include an image in a report. How do you display the Image Properties
dialog box?
When you drag an image item from the Toolbox window to the Report Designer, the
Image Properties dialog box automatically opens.
2. You want to configure an amount to display the value in a currency format. Which
property do you use?
To configure an amount to display a value in a currency format, select the report item, and
then set the format property to C or c.
3. What are data regions?
Data regions are report items that display repeated rows of summarized information from
datasets.
4. 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.
5. You want to use BIDS to deploy a report to a different server than the one you chose in
the Report Wizard. How can you change the server URL?
You can right-click the project in Solution Explorer and then change the Target-Server URL
property.
6. Which rendering formats are affected by the PageSize properties?
Because only the Adobe PDf file, Word, and Image rendering extensions use physical page
breaks, they are the only formats that are affected by the PageSize properties.
7. Can you use a stored procedure to provide data to an SSRS report?
Yes, you can use a stored procedure to provide data to an SSRS report by configuring the
dataset to use a stored procedure command type. However, your stored procedure should
return only a single result set. If it returns multiple result sets, only the first one is used for
the report dataset.
8. You want to use a perspective in an MDX query. How do you select the perspective?
Use the Cube Selector in the MDX Query Designer to select a perspective.
9. Can you use data mining models in SSRS?
Yes, you can use the DMX Designer to create data mining queries for SSRS reports.
However, do not forget to flatten the result set returned by the DMX query.
10.You want your report to display a hyperlink that will take users to your intranet. How
do you configure such a hyperlink?
Create a text box item, set the action to Go To URL, and then configure the URL.
11.You want a report to display Sales by Category, SubCategory, and Product. You want
users to see only summarized information initially but to be able to display the details
as necessary. How would you create the report?
Group the Sales information by Category, SubCategory, and Product. Hide the SubCategory
group and set the visibility to toggle based on the Category item. Hide the Product category
group and set the visibility to toggle based on the SubCategory item.
12.You want to create an Excel interactive report from SSRS. In SSRS, can you create the
same interactive experience in Excel that you would have on the Web?
No, you cannot create the same experience with SSRS. you can, however, use Excel to
create such an experience.
13.What is the main difference between a Matrix report item and a Table report item?
The main difference between a Matrix and a Table report item is in the initial template.
Actually, both report items are just templates for the Tablix data region.
14.When you do not use report caching, is it better to use parameters to filter information
in the query or to use filters in the dataset?
From a performance perspective, it is better to use parameters because they let SSRS pull
filtered data from the data source. In contrast, when you use filters, the queries retrieve all
data and then filter the information in an additional step.
15.How do you configure a running aggregate in SSRS?
You can use the RunningValue function to configure a running aggregate.
16.What is the main purpose of a report parameter?
The main purpose of a report parameter is to add interactivity to your reports, letting users
change the report behavior based on options they select.
17.What is the main purpose of a query parameter?
The main purpose of a query parameter is to filter data in the data source.
18.You want your users to select a parameter from a list of values in a list box. How
should you configure the parameter?
You should create a data source that contains the possible values and then bind the data
source to the parameter.
19.What is the main benefit of using embedded code in a report?
The main benefit of using embedded code in a report is that the code you write at the report
level can be reused in any expression in the report.
20.What programming language would you use to create embedded functions in SSRS?
An SSRS report supports only visual Basic .nET embedded code.
What is SSRS
SQL Server 2005 Reporting Services is a server-based reporting
platform that you can use to create and manage tabular, matrix,
graphical, and free-form reports that contain data from relational and
multidimensional data sources.
Advantages of SSRS
The beauty is that the entire report and data source definition is stored
as a simple XML file. This is the file the reporting engine uses to render
reports. The elements and attributes required for defining a report
format are fully documented.
Software Requirements
Microsoft Visual Studio .NET 2003 (any edition) or the standard edition
of Visual Basic .NET, Visual C# .NET, Visual C++ .NET Standard, or Visual
J# .NET to use Report Designer. Report Designer can be installed on the
same computer as Report Server components or on a separate
computer.
Architecture
SSRS is a comprehensive and extensible reporting platform, which
includes an integrated set of processing components, programmatic
interfaces, and tools. Processing components are the basis for the
multilayered architecture of SSRS and interact with each other to
retrieve data, process layout, render, and deliver a report to a target
destination.
Creating Report
A new report will be added to the project, and the Report Designer will
open at the Data tab. At this point, let's take a closer look at the Report
Designer tool. At the top of the Report Designer window are three tabs:
Data, Layout and Preview.
Developing Report
Next, switch to the Layout tab. This is where you actually build the
report display. Start by dragging a table from the Toolbox, onto the Body
section of the report. By default, the table shows a header row at the
top, a detail row in the middle and a footer row at the bottom.
Grouping
In a data region, you can group data by a single field, or create more
complex expressions that identify the data on which to group. Complex
expressions include references to multiple fields or parameters,
conditional statements, or custom code.
Interactive Sorting
It is incredibly easy to add sorting to the table. Open any report which
contains the table. Navigate to the Layout tab of the report designer.
Click in the cell labeled First Name in the header of the table. Right-click
and select Properties. Switch to the Interactive Sort tab.
Formatting Text
IIF Function
The IIF() statement has the following format: =IIF( Expression to
evaluate, what-to-do when the expression is true, what-to-do when the
expression is false )
Built-in Functions
In Reporting Services, expressions are used to provide dynamic
flexibility for controlling the content and appearance of a report. Some
expressions are created for you automatically.
Custom Functions
There are about 100 common functions in SSRS 2005, and they can
handle most of what you will need to do. Occasionally, however, you will
still need to set an expression with more control than the common
functions can manage. So, to make SSRS even more flexible, you can
write custom VB.NET or C# functions and use them in expressions.
Sub Reports
A subreport is a report that is embedded into another report. Subreports
can take parameters and execute their own datasets. A subreport in
SSRS is actually just another. In fact, in SSRS you can execute a
subreport on its own.
Jump to Report
This powerful feature enables a text box or image to be used as a link to
another report by passing parameter values to the target report.
Jump to URL
The Jump to URL option can be used to navigate to practically any
report or document content on your report server, and files, folders, and
applications in your intranet environment or on the World Wide Web.
Global Variables
Let's go to the expression editor. Click on Globals in the first column of
the expression editor. In the second column, you will see the list of the
global variables that are provided to the report.
Bookmarking in reports
Add bookmarks and bookmark links to a report when you want to
provide a customized table of contents or to provide customized internal
navigation links in the report.
Parameterized Reports
A parameterized report uses input values to complete report or data
processing. With a parameterized report, you can vary the output of a
report based on values that are set when the report runs.
How to set Default Values and Available Values for Report Parameters in SSRS
In SSRS, parameters are used to specify the data to use in a report,
narrow down your report data for better analysis, connect related
reports together, and vary report presentation.
Drill Down
By setting the Toggle Item property to State, when the report is run a
little + sign appears next to it when the report is run and it works like a
tree view.
Cascading Parameters
Deploying Reports
You can run your reports in the Visual Studio 2005 environment but, to
make them useful, you must publish them to a report server. The easiest
way to do this is to have Visual Studio publish your reports.