SQL Server 2005 Reporting Services
SQL Server 2005 Reporting Services
Reporting Services
Table of Contents
SQL Server 2005 Reporting Services............................................................................................................................3
Exercise 1 Creating a Report Using the Wizard ............................................................................................................4
Exercise 2 Creating a List Report..................................................................................................................................7
Exercise 3 Managing Security .....................................................................................................................................13
SQL Server 2005 Reporting Services
Page 3 of 15
SQL Server 2005 Reporting Services
Exercise 1
Creating a Report Using the Wizard
Scenario
In this exercise, you will create a simple report using the Business Intelligence Development Studio.
To create the report, you will:
Create a Business Intelligence Development Studio solution and add a Report Project.
Create a tabular report using the Report Wizard.
SQL Reporting Services report designer is hosted in the Business Intelligence Development Studio environment. It
provides you with an integrated developer environment for designing, creating, testing, and debugging reports.
Page 4 of 15
SQL Server 2005 Reporting Services
Page 5 of 15
SQL Server 2005 Reporting Services
Page 6 of 15
SQL Server 2005 Reporting Services
Exercise 2
Creating a List Report
Scenario
In this exercise, you will create a simple report using Business Intelligence Development Studio and deploy that
report to the SQL Server Reporting Services report server.
To create the report, you will:
Create a Business Intelligence Development Studio solution and add a Report Project.
Create a Data Set.
Set up a query from a Data Set.
Design the layout of a report.
Deploy the finished report to the Report Server.
SQL Reporting Services report designer is hosted in the Business Intelligence Development Studio environment. It
provides you with an integrated development environment for designing, creating, testing, and debugging reports.
Page 7 of 15
SQL Server 2005 Reporting Services
A dataset represents the specific fields queried from a data source. Multiple datasets
can be created using a single source.
c. In the Data Link Properties dialog box, on the Connection tab, in the Data
Source text box, type localhost.
Warning: Be sure there are no d. Under Enter information to log on to the server, select Use Windows NT
spaces in your DataSet name. integrated security.
e. In the Enter the initial catalog to use drop-down list, select
AdventureWorksDW, and then click OK.
f. Click the ellipsis (…) button to the right of the Dataset drop-down list.
g. In the Dataset dialog box, in the Name text box, replace the existing text with
SalesData.
h. Keep the dialog open and continue to Task 3.
3. Create a query for the a. From the Windows task bar, click Start |Run, type Notepad, and click OK.
Data Set. b. Choose File | Open and navigate to the C:\SQL Labs\Lab Projects\Reporting
Services Lab directory. Select Query.txt, and then click Open.
Using previously developed queries can save time when creating data sets. This also
allows users to develop queries using other tools, and then paste the SQL into this
interface.
c. In Notepad, press Ctrl+A to select all the text, press Ctrl+C to copy the text to
the clipboard, and then close Notepad.
d. Switch back to Business Intelligence Development Studio and paste the text in
the Query String text box of the Dataset dialog box by clicking the Query
String box, and pressing Ctrl+V.
e. Click OK to close the Dataset dialog box.
4. Create the first List a. In the View pane, click the Layout tab.
Object. b. In the Layout pane, move the mouse pointer to the bottom edge of the report
grid. When the mouse pointer changes into a vertical double-arrow icon, click
and drag downward to enlarge the report grid.
Tip: By default, the Toolbox is c. Click the Toolbox tab to maximize the Toolbox. In the Toolbox window,
located on the left side of the double-click the List item in the Report Items group. This will place an instance
screen. If the Toolbox window of the List control on the report design surface.
is not visible, select View | d. With the new List control still selected, click and drag the lower-right corner of
Toolbox. the control so that the control fills the width of the entire design surface and is
Important: If the Fields about one inch tall.
window is not already open, e. Drag EnglishProductCategoryName from the Fields window to the upper left
select View | Fields. corner of the List area in the report grid. Click and drag the right edge of the
field’s text box to make it approximately two inches wide.
f. With the EnglishProductCategoryName text box selected, press F4 to display
the Properties window with properties for this control.
g. In the Properties window, click the Font property. Expand the Font property to
display the FontWeight property. Change the FontWeight property from
Normal to Bold.
Page 8 of 15
SQL Server 2005 Reporting Services
m. Click on the SalesAmount text box to select it. In the Properties window, in the
Format property text box, type 0,0.00
n. Select File | Save All.
o. In the View pane, click the Preview icon. The results should look like Figure 3.
p. The report will generate and then show the three categories and a sales amount
total for each category.
Page 9 of 15
SQL Server 2005 Reporting Services
Page 10 of 15
SQL Server 2005 Reporting Services
Page 11 of 15
SQL Server 2005 Reporting Services
Page 12 of 15
SQL Server 2005 Reporting Services
Exercise 3
Managing Security
Scenario
In this exercise, you will modify security settings for both the Report Server application and for a specific report by
using the Microsoft SQL Server Reporting Services Web application interface.
In this exercise, you will:
Create a system-level security role.
Apply a new system role to a group.
Create an item-level security role.
Apply a new item-level role to a report.
The security roles used by the Report Server Application use the groups and users set up in the Windows operating
system.
Page 13 of 15
SQL Server 2005 Reporting Services
g. Click the Home link, click AWReports, and then click AWSales.
h. Click the Properties tab. On the left-hand side of the screen, click the Security
link, and then click the Edit Item Security button at the top of the window.
Permissions are inherited from their parent folder by default. Changing the default
permissions opens an information dialog box asking the user if they want to break the
inheritance of these permissions.
i. In the Microsoft Internet Explorer message box, click OK.
j. Click the Edit link to the left of the BuiltIn\Administrators label. Clear all
selected items, check the ReadOnly box, and then click Apply, as shown in
Figure 4.
Page 14 of 15
SQL Server 2005 Reporting Services
All users in the Administrators group set up in Windows will now only have the
ReadOnly permissions created above for the report.
The original report permissions can be restored by clicking Revert to Parent
Security.
k. Close Internet Explorer.
Page 15 of 15