Você está na página 1de 6

Lab Answer Key for Module 1: Introduction to SQL Server Reporting Services

Table of Contents Lab: Using Reporting Services Tools Exercise 1: Exploring Report Designer Exercise 2: Exploring Report Manager

1 1 3

Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft makes no representations and warranties, either expressed, implied, or statutory, regarding these manufacturers or the use of the products with any Microsoft technologies. The inclusion of a manufacturer or product does not imply endorsement of Microsoft of the manufacturer or product. Links are provided to third party sites. Such sites are not under the control of Microsoft and Microsoft is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. Microsoft is not responsible for webcasting or any other form of transmission received from any linked site. Microsoft is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement of Microsoft of the site or the products contained therein. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. 2007 Microsoft Corporation. All rights reserved. Microsoft, BizTalk, Excel, Expression, Internet Explorer, Outlook, PowerPoint, SharePoint, SQL Server, Visual Basic, Visual C#, Visual Studio, Windows and Windows Server are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.

Version 1.0

Lab Answer Key for Module 1: Introduction to SQL Server Reporting Services

Lab: Using Reporting Services Tools


Exercise 1: Exploring Report Designer
Task 1: Open the AdventureWorks solution
1. Click Start, point to All Programs, point to Microsoft SQL Server 2005, and then click SQL Server Business Intelligence Development Studio. 2. On the File menu, point to Open, and then click Project/Solution. 3. In the Open Project dialog box, browse to the D:\Labfiles\Starter folder, and then double-click the AdventureWorks Sample Reports.sln solution.

Task 2: Explore the Sales Order Detail report


1. In Solution Explorer, double-click Sales Order Detail.rdl. 2. Click the Preview tab. Notice that the report is a parameterized report that shows the detail of a particular sales order.
Tip: Close the Output pane, and click the Auto Hide button on the panes at the sides of the report designer to make it easier to see the whole report.

3. Click the Layout tab. Notice that the report is made up of a few distinct areas: A header consisting of an Adventure Works image on the left, and a title on the right together with an expression to display the report parameter value. A rectangle containing the Bill To, Ship To and order header details. A table region containing the order detail together with a footer containing totals.

Task 3: Alter the Sales Order Detail report


1. In the Toolbox, drag a Textbox control and drop it just above the text box containing the Sales Order title, aligned to the left edge. 2. Stretch the new textbox to the same width as the Sales Order title text box. 3. On the Report Formatting toolbar, click Bold, and then click Align Right.
Tip: If the Bold and Align Right buttons are not visible, click the Toolbar Options button at the right edge of the toolbar to display them.

4. In the Properties pane, click the Value property, and then in the list click Expression. 5. In the Edit Expression dialog box, click Fields (SalesOrder), and then double-click OrderDate. The following expression is added to the expression pane.

Lab Answer Key for Module 1: Introduction to SQL Server Reporting Services

=Fields!OrderDate.Value

6. Click OK. 7. In the Properties pane, in the Format box, type d, and then press ENTER.

Task 4: Alter the OrderDetail table region


1. On the report design surface, click the cell in the footer row of the Subtotal column of the table at the bottom of the report. 2. In the Properties pane, click the Value property, and then click Expression in the list. 3. In the expression pane, type the following expression, and then click OK.
=sum(Fields!LineTotal.Value)

4. In the Properties pane, type c in the Format property, and then press ENTER. 5. Click the cell in the footer row of the Subtotal column, and then on the Report Formatting toolbar, click Bold, and then click Align Right. 6. Click the Preview tab, and then review your changes.

Task 5: Change report parameter available values


1. Click the Layout tab. 2. On the Report menu, click Report Parameters. 3. Under Available values, enter the following labels and values.
Label SO50750 SO50751 SO50752 Value SO50750 SO50751 SO50752

4. Click OK. 5. Click the Preview tab. 6. In the Sales Order Number list, click SO50751, and then click View Report. 7. Close Business Intelligence Management Studio. Click Yes if you are prompted to save any items.

Lab Answer Key for Module 1: Introduction to SQL Server Reporting Services

Exercise 2: Exploring Report Manager


Task 1: Start Report Manager
1. Click Start, point to All Programs, and then click Internet Explorer. 2. In the Address text box, type http://miami/reports, and then press ENTER. The home page for Report Manager is displayed.

Task 2: Examine the Product Catalog report


1. Click the Samples folder link. Notice that the folder contains two subfolders. 2. Click AdventureWorks Sample Reports. Notice that the AdventureWorks Sample Reports folder contains the following seven reports: Company Sales Employee Sales Summary Product Catalog Product Line Sales Sales Order Detail Sales Reason Comparisons Territory Sales Drilldown

3. Click the Product Catalog link. Notice that there is a document map on the left together with a number of catalog pictures on the right. 4. In the Document Map, if necessary, expand Product Catalog, expand Bikes, expand Mountain Bikes, and then click Mountain-100. 5. In the HTML viewer toolbar, navigate through the report by clicking Next Page. 6. In the Current Page box, type 11 and then press ENTER. 7. In the Find Text box, type saddle, and then click Find. Then view the page that was found.

Task 3: View the Company Sales report


1. On the upper left side of the screen, click the AdventureWorks Sample Reports link. 2. Click the Company Sales report link.

Lab Answer Key for Module 1: Introduction to SQL Server Reporting Services

3. Browse the report. Notice that you can expand the product categories and the years to drill-down and find more detailed information.

Task 4: Export the Company Sales report to Excel


1. In the Export list, click Excel, and then click Export. 2. In the File Download dialog box, click Open. The Sales Order report is now displayed as a Microsoft Office Excel file. 3. Close Excel. Click No if prompted to save any changes.

Task 5: Examine Sales Order report properties


1. In Report Manager, click the Properties tab for the Company Sales report. 2. The General tab is shown. Notice that the report name and description can be edited. 3. Click the Data Sources tab. Notice that the report uses the AdventureWorks shared data source located in the /Samples/Data Sources folder. 4. Close Microsoft Internet Explorer.

Você também pode gostar