Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX www.wrox.com $49.99 USA $59.99 CAN Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job. Recommended Computer Book Categories Database Management General ISBN: 978-0-470-24798-3 The new features of Analysis Services 2008 make it even easier to use and build your databases for efficient and improved performance. This authoritative book, written by key members of the Analysis Services product team at Microsoft, explains how to best use these enhancements for your business needs. The authors provides you with valuable insight on how to use Analysis Services 2008 effectively to build, process, and deploy top-of-the-line business intelligence applications. You’ll explore everything that Analysis Services 2008 has to offer and examine the important features of this product with the help of step-by-step instructions on building multi-dimensional databases. Within each chapter, you will not only learn how to use the features, but you’ll also discover more about the features at a user level and what happens behind the scenes to make things work. You’ll get a look at how features really operate, enabling you to understand how to use them to their full potential. Plus, you’ll sharpen your ability to debug problems that you might not have been able to otherwise. What you will learn from this book ● The basic concepts of using Analysis Services and the common operations you need to design your databases ● How to create multi-dimensional databases (such as multiple measure groups, business intelligence wizards, key performance indicators, and more) ● Methods for extending MDX via external functions ● Ways to administer your Analysis Services programmatically and design and optimize your cube for best performance ● How data mining along with Microsoft Office 2007 makes it easy to use and effective to perform analysis on data Enhance Your Knowledge Advance Your Career Who this book is for This book is for database and data warehouse developers and administrators interested in exploiting the power of business intelligence and leveraging the SQL Server 2008 tool set. Microsoft ® SQL Server ® Analysis Services 2008 with MDX Harinath, Carroll, Meenakshisundaram, Zare, Lee Professional spine=2.16" Updates, source code, and Wrox technical support at www.wrox.com Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX Wrox Programmer to Programmer TM Wrox Programmer to Programmer TM Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX Enhance Your Knowledge Advance Your Career Professional Microsoft SQL Server 2008 Integration Services 978-0-470-24795-2 This book shows developers how to master the 2008 release of SSIS, covering topics including data warehousing with SSIS, new methods of managing the SSIS platform, and improved techniques for ETL operations. Professional SQL Server 2008 Reporting Services 978-0-470-24201-8 This book teaches solutions architects, designers, and developers how to use Microsoft’s reporting platform to create reporting and business intelligence solutions. Professional Microsoft SQL Server 2008 Analysis Services 978-0-470-24798-3 Professional Microsoft SQL Server 2008 Analysis Services shows readers how to build data warehouses and multidimensional databases, query databases, and use Analysis Services and other components of SQL Server to provide end-to-end solutions. Professional Microsoft SQL Server 2008 Programming 978-0-470-25702-9 This updated new edition of Wrox’s best-selling SQL Server book has been expanded to include coverage of SQL Server 2008’s new datatypes, new indexing structures, manageability features, and advanced time-zone handling. Professional Microsoft SQL Server 2008 Administration 978-0-470-24796-9 A how-to guide for experienced database administrators, this book is loaded with unique tips, tricks, and workarounds for handling the most difficult SQL Server administration issues. The authors discuss data capture, performance studio, Query Governor, and new techniques for monitoring and policy management. Beginning Microsoft SQL Server 2008 Programming 978-0-470-25701-2 This comprehensive introduction to SQL Server covers the fundamentals and moves on to discuss how to create and change tables, manage keys, write scripts, work with stored procedures, and much more. Beginning T-SQL with Microsoft SQL Server 2005 and 2008 978-0-470-25703-6 Beginning T-SQL with Microsoft SQL Server 2005 and 2008 provides a comprehensive introduction to the T-SQL programming language, with concrete examples showing how T-SQL works with both SQL Server 2005 and SQL Server 2008. Beginning Database Design Solutions 978-0-470-38549-4 Beginning Database Design Solutions introduces IT professionals—both DBAs and database developers—to database design. It explains what databases are, their goals, and why proper design is necessary to achieve those goals. It tells how to decide what should be in a database to meet the application’s requirements. It tells how to structure the database so it gives good performance while minimizing the chance for error. spine=2.16" Get more out of WROX.com Programmer to Programmer ™ Interact Take an active role online by participating in our P2P forums Wrox Online Library Hundreds of our books are available online through Books24x7.com Wrox Blox Download short informational pieces and code to keep you up to date and out of trouble! Chapters on Demand Purchase individual book chapters in pdf format Join the Community Sign up for our free monthly newsletter at newsletter.wrox.com Browse Ready for more Wrox? We have books and e-books available on .NET, SQL Server, Java, XML, Visual Basic, C#/ C++, and much more! Contact Us. We always like to get feedback from our readers. Have a book idea? Need community support? Let us know by e-mailing wrox-partnerwithus@wrox.com Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX Introduction xxix Part I: Introduction Chapter 1: Introduction to Data Warehousing and SQL Server 2008 Analysis Services 3 Chapter 2: First Look at Analysis Services 2008 23 Chapter 3: Introduction to MDX 67 Chapter 4: Working with Data Sources and Data Source Views 93 Chapter 5: Dimension Design 117 Chapter 6: Cube Design 161 Chapter 7: Administering Analysis Services 197 Part II: Advanced Topics Chapter 8: Advanced Dimension Design 245 Chapter 9: Advanced Cube Design 285 Chapter 10: Advanced Topics in MDX 367 Chapter 11: Extending MDX Using External Functions 395 Chapter 12: Data Writeback 413 Part III: Advanced Administration and Performance Optimization Chapter 13: Programmatic and Advanced Administration 441 Chapter 14: Designing for Performance 457 Chapter 15: Analyzing and Optimizing Query Performance 517 Part IV: Integration with Microsoft Products Chapter 16: Data Mining 553 Chapter 17: Analyzing Cubes Using Microsoft Office Components 601 Chapter 18: Using Data Mining with Office 2007 677 Continues ffirs.indd iffirs.indd i 2/10/09 7:20:52 PM2/10/09 7:20:52 PM Do w nloa d f rom W ow! e Book <w ww.w o webo o k.co m > Chapter 19: Integration Services 747 Chapter 20: Reporting Services 779 Part V: Scenarios Chapter 21: Designing Real-Time Cubes 833 Chapter 22: Securing Your Data in Analysis Services 855 Chapter 23: Inventory Scenarios 897 Chapter 24: Financial Scenarios 923 Chapter 25: Web Analytics 951 Appendix A: MDX Functions 991 Index 993 ffirs.indd iiffirs.indd ii 2/10/09 7:20:53 PM2/10/09 7:20:53 PM Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX ffirs.indd iiiffirs.indd iii 2/10/09 7:20:53 PM2/10/09 7:20:53 PM ffirs.indd ivffirs.indd iv 2/10/09 7:20:53 PM2/10/09 7:20:53 PM Professional Microsof t ® SQL Server ® Analysis Services 2008 with MDX Sivakumar Harinath Matt Carroll Sethu Meenakshisundaram Robert Zare Denny Guang-Yeu Lee Wiley Publishing, Inc. ffirs.indd vffirs.indd v 2/10/09 7:20:53 PM2/10/09 7:20:53 PM Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX Published by Wiley Publishing, Inc. 10475 Crosspoint Boulevard Indianapolis, IN 46256 www.wiley.com Copyright © 2009 by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada ISBN: 978-0-470-24798-3 Manufactured in the United States of America 10 9 8 7 6 5 4 3 2 1 Library of Congress Cataloging-in-Publication Data is available from the publisher. No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions. Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or promotional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services. If professional assistance is required, the services of a competent professional person should be sought. Neither the publisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to in this work as a citation and/or a potential source of further information does not mean that the author or the publisher endorses the information the organization or Web site may provide or recommendations it may make. Further, readers should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was written and when it is read. For general information on our other products and services please contact our Customer Care Department within the United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002. Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other countries, and may not be used without written permission. Microsoft and SQL Server are registered trademarks of Microsoft Corporation in the United States and/or other countries. All other trademarks are the property of their respective owners. Wiley Publishing, Inc. is not associated with any product or vendor mentioned in this book. Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may not be available in electronic books. ffirs.indd viffirs.indd vi 2/10/09 7:20:54 PM2/10/09 7:20:54 PM I dedicate this book in the grandest possible manner to my dear wife, Shreepriya, who has been fully supportive and patient with me for all the late nights I worked on this book. It is also dedicated to my twins, Praveen and Divya, who have seen me work long hours on this book. I dedicate this book in memory of my father, Harinath Govindarajalu, who passed away in 1999 and who I am sure would have been proud of this great achievement, and to my mother, Sundar Bai, and my sister, Geetha Harinath. Finally, I dedicate this book in memory of my uncle, Jayakrishnan Govindarajalu, who passed away in 2007 and who was very proud of me co - authoring the first edition of this book, and was eagerly looking forward to seeing this book. — Siva Harinath Thanks to my wife, Wendy, for her love and patience. Love and hope to Lawrence, Loralei, and Joshua. — Matt Carroll To my Parents, Uncle & Aunt, Guru(s), and the Lord Almighty for molding me into who I am today. — Sethu Meenakshisundaram To the patience and love from Isabella and Hua - Ping. — Denny Lee ffirs.indd viiffirs.indd vii 2/10/09 7:20:54 PM2/10/09 7:20:54 PM ffirs.indd viiiffirs.indd viii 2/10/09 7:20:54 PM2/10/09 7:20:54 PM [...]... databases from the SQL2 008.AdventureWorks_OLTP_DB_v2008.zip and SQL2 008 AdventureWorks_DW_BI_v2008.zip files installed These databases are not installed with SQL Server 2008 by default The AdventureWorks DW files (along with the other SQL Server database files) can be downloaded from www.wrox.com/go/SQLServer2008RTMDataSets Download and install the SQL Server 2008 Adventure Works DW 2008 sample database... Data Mining Algorithms in SQL Server Analysis Services 2008 Microsoft Microsoft Microsoft Microsoft Microsoft Microsoft Microsoft Microsoft Microsoft Decision Trees Naïve Bayes Clustering Sequence Clustering Association Rules Neural Network Time Series Linear Regression Logistic Regression Working with Mining Models Relational Mining Model OLAP Mining Models Analyzing the Cube with a Data Mining Dimension... interacts with an Analysis Services instance MDX is the language used for data retrieval from Analysis Services You will get an introduction to the MDX language with basic concepts and the various MDX functions in this book When you are browsing data using Analysis Services tools, those tools send appropriate MDX to the instance of Analysis Services that contains the target data By learning the MDX sent... Storing Data The Model Exploring Data Visualizing Deliver SQL Server Analysis Services 2008 The Unified Dimensional Model Summary Chapter 2: First Look at Analysis Services 2008 Differences between Analysis Services 2000, Analysis Services 2005, and Analysis Services 2008 Development, Administrative, and Client Tools Analysis Services Version Differences ftoc.indd xv 3 4 7 7 8 9 10 11 12 13 13 14 14 15... Sivakumar.harinath @microsoft. com Matt Carroll is currently a Senior Development Lead on the SQL Server Integration Services team at Microsoft Prior to this, he spent 10 years working on the SQL Server Analysis Services team as a developer and then development lead He’s presented on Analysis Services at VSLive and compiled and edited the whitepaper “OLAP Design Best Practices for Analysis Services 2005.”... Introduction Analysis Services 2005 was a significant leap from Analysis Services 2000 in building your multidimensional databases right from the concept of building your cubes in Business Intelligence Development Studio to the concept of the Unified Dimensional Model with attribute and user hierarchies The first edition of this book, Professional SQL Server Analysis Services 2005 with MDX, was aimed... a co-author of SQL Server 2000 Data Warehousing with Analysis Services and “Transforming Healthcare through Information [Ed Joan Ash] (2008) ” In addition to contributing to the SQLCAT Blog, SQL Server Best Practices, and SQLCAT.com, you can also review Denny’s Space (http://denster.spaces.live.com) Denny specializes in developing solutions for Enterprise Data Warehousing, Analysis Services, and Data... Dependency Shape Wizard Summary Chapter 19: Integration Services Creating an Integration Services Project The Integration Services Task The Integration Services Transform Creating Integration Services Packages for Analysis Services Operations The Execute DDL Task Processing an Analysis Services Object Loading Data into an Analysis Services Partition Integration Services Tasks for Data Mining Automating Execution... Perspectives Creating Translations Browsing Perspectives and Translations Summary 192 193 194 196 Chapter 7: Administering Analysis Services 197 Administration Using SQL Server 2008 Tools 197 Managing Analysis Servers Managing Analysis Services Objects Database Creation Processing Analysis Services Database Objects Managing Partitions Managing Assemblies Backup and Restore Detach and Attach Synchronization... terms of BI though the eyes of SQL Server Analysis Services 2008, we hope this book has got it covered! We also encourage you to download and take a look at Appendix A; it is the complete MDX Reference We thank Microsoft for providing the content for Appendix A In the first edition of the book, Appendix A was included along with the book Due to the Analysis Services 2008 features we have covered in . www.wrox.com Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX Wrox Programmer to Programmer TM Wrox Programmer to Programmer TM Professional Microsoft ® SQL Server ® Analysis Services. scripts, work with stored procedures, and much more. Beginning T -SQL with Microsoft SQL Server 2005 and 2008 978-0-470-25703-6 Beginning T -SQL with Microsoft SQL Server 2005 and 2008 provides. wrox-partnerwithus@wrox.com Professional Microsoft ® SQL Server ® Analysis Services 2008 with MDX Introduction xxix Part I: Introduction Chapter 1: Introduction to Data Warehousing and SQL Server 2008