Microsoft SQL Server 2008 Reporting Services Step by Step Ebook
Total Page:16
File Type:pdf, Size:1020Kb
● ● ● ● ● ● ● ● ● ● ● How to access your CD files The print edition of this book includes a CD. To access the CD files, go to http://aka.ms/626478/files, and look for the Downloads tab. Note: Use a desktop web browser, as files may not be accessible from all ereader devices. Questions? Please contact: [email protected] Microsoft Press PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2009 by Stacia Misner All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. Library of Congress Control Number: 2008940501 Printed and bound in the United States of America. 1 2 3 4 5 6 7 8 9 QWT 4 3 2 1 0 9 Distributed in Canada by H.B. Fenn and Company Ltd. A CIP catalogue record for this book is available from the British Library. Microsoft Press books are available through booksellers and distributors worldwide. For further infor mation about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at www.microsoft.com/mspress. Send comments to [email protected]. Microsoft, Microsoft Press, Access, Active Directory, ActiveX, Excel, IntelliSense, Internet Explorer, MS, PerformancePoint, SharePoint, SQL Server, Visual Basic, Visual C#, Visual Studio, Windows, Windows Server, and Windows Vista are either registered trademarks or trademarks of the Microsoft group of companies. Other product and company names mentioned herein may be the trademarks of their respective owners. The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions Editor: Ken Jones Developmental Editor: Sally Stickney Project Editor: Carol Vu Editorial Production: Custom Editorial Productions, Inc. Technical Reviewer: Rozanne Murphy Whalen; Technical Review services provided by Content Master, a member of CM Group, Ltd. Cover: Tom Draper Design Body Part No. X15-28148 Contents at a Glance Part I Getting Started with Reporting Services 1 Introducing Reporting Services . .3 2 Installing Reporting Services . .21 3 Exploring Reporting Services . .65 Part II Developing Reports 4 Designing Reports . 103 5 Developing Expressions . .145 6 Adding Interactivity . .181 7 Using Analysis Services as a Data Source . 215 8 Visualizing Data . 241 9 Developing Report Models . 269 Part III Managing the Report Server 10 Deploying Reports to a Server . 299 11 Securing Report Server Content . 335 12 Performing Administrative Tasks . 369 Part IV Viewing Reports 13 Accessing Reports Online . 399 14 Creating Ad Hoc Reports . 429 15 Working with Subscriptions . 463 Part V Using Reporting Services as a Development Platform 16 Programming Reporting Services . .487 iii Table of Contents Acknowledgments . .xv Introduction . .xvii Who This Book Is For . .xvii Finding Your Best Starting Point in This Book . .xviii Conventions and Features in This Book . .xix Conventions . .xx Other Features . .xx Hardware and Software Requirements . .xx Sample Files . .xxi Installing the Sample Files . .xxi Using the Practice Files . xxii Uninstalling the Code Samples . xxii Find Additional Content Online . xxii Support for This Book . .xxiii Questions and Comments . .xxiii Part I Getting Started with Reporting Services 1 Introducing Reporting Services . .3 A Reporting Platform . 3 Reporting Life Cycle . 5 Report Development . 5 Report Administration . 6 Report Access . 7 Reporting Services Architecture . 7 Data Tier . 8 Application Tier . 9 Server Tier . 13 What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit: www.microsoft.com/learning/booksurvey/ v vi Table of Contents SharePoint Integrated Mode . 17 SharePoint Server . 19 Report Server . 19 Chapter 1 Quick Reference . 20 2 Installing Reporting Services . .21 Planning for Installation . 21 Choosing an Edition . 21 Choosing a Server Mode . 22 Choosing a Deployment Topology . 23 Reviewing Hardware and Software Requirements . 24 Planning Accounts for Reporting Services . 26 Performing the Installation . 27 Installing Prerequisites . 27 Installing Setup Support Files . 28 Installing SQL Server 2008 Features . 29 Configuring Reporting Services . 35 Installing Report Builder 2 .0 . 47 Installing Sample Databases . 48 Configuring SharePoint Integrated Mode . 49 Configuring the Report Server . 49 Installing the Reporting Services Add-in for SharePoint Technologies . 52 Configuring SharePoint for Reporting Services Integration . 53 Creating a SharePoint Web Application . 56 Creating a Report Center Site . 58 Adding Reporting Services Content Types to a SharePoint Document Library . 60 Chapter 2 Quick Reference . 62 3 Exploring Reporting Services . .65 Developing a Simple Report . 65 Introducing Report Builder 2 .0 . 66 Adding a Data Source . 69 Adding a Dataset . 71 Adding a Report Title . 74 Adding a Table . 75 Grouping Data . 79 Inserting Page Breaks . 82 Table of Contents vii Formatting a Report . 84 Previewing a Report . 86 Managing a Report . 87 Publishing a Report . 87 Adding a Description . 88 Reviewing Execution Properties . 92 Viewing a Report . 95 Opening a Report . 95 Using the HTML Viewer . 96 Chapter 3 Quick Reference . 98 Part II Developing Reports 4 Designing Reports . 103 Getting Started with Report Designer . 103 Creating a Report Server Project . 104 Adding a Report to a Project . 105 Creating a Data Source . 108 Creating a Dataset . 111 Designing the Report Structure . 114 Adding a Data Region . 114 Binding Data to a Data Region . 115 Grouping Data . 117 Adding a Total . 121 Using a Matrix . 123 Using a List . 126 Defining Adjacent Groups . 129 Adding a Text Box . 130 Adding a Line . 131 Adding an Image . 132 Linking Information with a Subreport . 134 Enhancing the Report Appearance . 135 Configuring the Placement and Size of a Report Item . 135 Changing the Appearance of a Report Item . 136 Setting Page Breaks . 138 Adjusting the Report Size for Print-Ready Formats . 139 Adding a Page Header and Page Footer . 141 Chapter 4 Quick Reference . 142 viii Table of Contents 5 Developing Expressions . .145 Adding Calculations to a Report . 145 Adding a Calculated Field . 146 Creating a Text Box Expression . 149 Using a Report Item Expression . 150 Using Built-in Fields . 152 Using Aggregate Functions . 154 Using the Scope Argument . 154 Using an Aggregate Function in.