Docsity

MCTS 70-445 SQL Server 2005 Business Intelligence - Implementation and Maintenance, Notas de estudo de Cultura

Pré-visualização parcial do texto

Baixe MCTS 70-445 SQL Server 2005 Business Intelligence - Implementation and Maintenance e outras Notas de estudo em PDF para Cultura, somente na Docsity!

PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052- Copyright © 2008 by Solid Quality Mentors 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: 2007904678

Printed and bound in the United States of America.

1 2 3 4 5 6 7 8 9 QWT 2 1 0 9 8 7

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, Active Directory, ActiveX, Excel, Internet Explorer, MSDN, PivotTable, ProClarity, SharePoint, SQL Server, Visio, Visual Basic, Visual C#, Visual C++, Visual Studio, Windows, Windows Server, Windows Server System, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. 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.

7KLVERRNH[SUHVVHVWKHDXWKRU¶VYLHZVDQGRSLQLRQV7KHLQIRUPDWLRQcontained 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: Jenny Moss Benson Project Editor: Denise Bankaitis Editorial Production: nSight, Inc. Body Part No. X13-

iv About the Authors

Dejan Sarka

Dejan Sarka, a SQL Server MVP and Solid Quality mentor, focuses on training, mentoring, and developing database and business intelligence applications. As a guest author, he con- tributed to two books, Inside Microsoft SQL Server 2005 - T-SQL Querying and Inside Microsoft SQL Server 2005 - T-SQL Program- ming , both written by Itzik Ben-Gan. Dejan also developed two courses for Solid Quality Learning: Data Modeling Essentials and Data Mining with SQL Server 2005.

Javier Loria

Javier Loria is a mentor with Solid Quality Mentors and a SQL Server MVP. He is a software and business intelligence architect who began his professional career in 1992 as a software developer and system engineer. His work rapidly evolved to the training side, focusing particularly in the XML and OLAP worlds. Based in Costa Rica, he trains customers at locations throughout Latin America.

vii

ix

Table of Contents

Introduction............................................................... xxi

1 Installing SQL Server 2005 Business Intelligence Tools............... 1

Before You Begin.......................................................... Lesson 1: Installing SQL Server 2005 Components............................. Selecting Installation Components...................................... Choosing Installation Details........................................... Practice: Installing SQL Server 2005 Components........................ Lesson 2: Performing Updates and Advanced Installations..................... Keeping Current with Service Packs.................................... Clustering Analysis Services and Managing Instances..................... Installing Multiple Instances of Reporting Services....................... Practice: Installing a Service Pack...................................... Case Scenario: Installing SQL Server 2005 Components for a BI Project.......... Chapter Summary........................................................

2 Configuring SQL Server 2005 Business Intelligence Components..... 23

Before You Begin......................................................... Lesson 1: Configuring the SSRS Architecture and Instances.................... Using the Report Server Configuration Manager Tool for Server Setup and Management........................................ Using the Reporting Services Command-Line Tools to Manage SSRS....... Configuring the Report Server for SSL Communication and Internet Deployment............................................. Practice: Managing SSRS Encryption Keys...............................

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/

What do you think of this book? We want to hear from you!

x Table of Contents

  • 1 Installing SQL Server 2005 Business Intelligence Tools Contents at a Glance
  • 2 Configuring SQL Server 2005 Business Intelligence Components
  • 3 Migrating to SQL Server 2005 Business Intelligence Components
  • 4 Developing SSIS Packages
  • 5 Debugging and Error Handling with SSIS Packages
  • 6 Developing SSAS Cubes
  • 7 Extending SSAS Cubes.
  • 8 Defining SSAS Storage, Partitions, and Aggregations
  • 9 Developing SSAS Data Mining Models.
  • 10 Developing SSRS Reports
  • 11 Formatting and Extending SSRS Reports
  • 12 Deploying and Configuring SSIS Packages
  • 13 Deploying and Processing SSAS Objects
  • 14 Deploying and Scheduling SSRS Reports
  • 15 Securing and Executing SSIS Packages
  • 16 Administering and Securing SSAS Cubes
  • 17 Securing and Querying SSAS Data Mining Models
  • 18 Managing and Securing SSRS Reports - Lesson 2: Setting SSAS Server Security and Server Properties - Setting SSAS Administrative Roles and Permissions - Editing SSAS Server Properties - Practice: Setting Up SSAS Query Logging - Chapter Summary.
  • 3 Migrating to SQL Server 2005 Business Intelligence Components - Before You Begin - Lesson 1: Upgrading SSAS - Architecture Changes - Migration Overview - Using the Analysis Services Migration Wizard - Post-Migration Considerations - Practice: Using the Analysis Services Migration Wizard - Lesson 2: Migrating to SSIS Packages - DTS and SSIS Differences - Executing and Managing DTS in SQL Server - Running the Package Migration Wizard - Post-Migration Steps - Taking Advantage of SSIS Features - Practice: Migrating a DTS Package to SSIS
    • Intelligence Components Case Scenario: Migrating to SQL Server 2005 Business
    • Chapter Summary.
  • 4 Developing SSIS Packages - Before You Begin - Lesson 1: Creating SSIS Packages - Using the Import and Export Wizard - Creating an SSIS Project in BIDS - Practice: Creating a New Project - Lesson 2: Defining Project Data Sources and Package Connections - Creating a Data Source - Case Scenario: Setting Up Your SSAS and SSRS Servers. - Creating Package Connections. Table of Contents xi - Adding Connections in the Connection Managers Pane. - Practice: Creating Connections for a Package.
    • Lesson 3: Creating and Editing Control Flow Objects. - Control Flow Tasks. - Using Control Flow Containers.. - Testing Package Execution in BIDS. - Practice: Creating and Editing a Control Flow Task.
    • Lesson 4: Using Data Flow Adapters and Transformations.. - Defining Data Flow Source Adapters. - Creating Data Flow Destinations. - Data Flow Transformations. - Practice: Creating a Simple Data Flow.
    • Case Scenario: Creating an ETL Solution.
    • Chapter Summary.
  • 5 Debugging and Error Handling with SSIS Packages
    • Before You Begin
    • Lesson 1: Configuring Package Transactions and Checkpoints
      • Defining Package and Task Transaction Settings
      • Implementing Restartability Checkpoints
      • Practice: Implementing Package and Task Transactions.
    • Lesson 2: Identifying Package Status and Handling Task Errors
      • Viewing Package Status.
      • Connecting Control Flow Objects with Precedence
      • Practice: Creating and Configuring Precedence Constraints
    • Lesson 3: Handling Data Flow Errors and Debugging.
      • Using Error Paths to Handle Data Flow Errors
      • Leveraging Data Viewers to Identify Data Flow Issues.
      • Handling Package Errors with Event Handlers.
      • Debugging the Control Flow with Breakpoints
      • Practice: Identifying Data Flow Errors
    • Case Scenario: Troubleshooting and Handling Errors in SSIS Packages
    • Chapter Summary
  • 6 Developing SSAS Cubes xii Table of Contents
    • Before You Begin
    • Lesson 1: Creating a Data Source and Data Source View
      • Defining a New Data Source.
      • Selecting Objects for a Data Source View.
      • Creating DSV Keys and Table Relationships
      • Defining DSV Named Calculations and Named Queries
      • Practice: Creating an SSAS Project, Data Source, and DSV.
    • Lesson 2: Creating and Modifying SSAS Cubes
      • Using the Cube Wizard
      • Modifying a Cube with the Cube Designer
      • Practice: Creating and Modifying a Cube
    • Lesson 3: Creating and Modifying Dimensions.
      • Creating a New Dimension
      • Modifying Dimension Attribute Properties
      • Assigning Dimensions to Cubes
      • Practice: Working with SSAS Dimensions
    • Lesson 4: Defining User Hierarchies and Dimension Relationships
      • Creating and Modifying User Dimension Hierarchies.
      • Associating Dimensions to Measure Groups
      • Selecting Relationship Types
      • Practice: Creating and Modifying Dimension Hierarchies
    • Case Scenario: Building an SSAS Solution as a Prototype
    • Chapter Summary.
  • 7 Extending SSAS Cubes
    • Before You Begin
    • Lesson 1: Creating Measure Groups and Measures
      • Creating a New Measure Group
      • Adding and Configuring Measures
      • Practice: Adding Measure Groups and Measures
    • Lesson 2: Creating Key Performance Indicators Table of Contents xiii
      • Understanding KPI Goal, Value, Status, and Trend Properties.
      • Additional KPI Properties
      • Viewing KPIs
      • Practice: Creating Key Performance Indicators
    • Lesson 3: Defining Actions, Translations, and Perspectives
      • Implementing Actions
      • Localizing Cubes with Translations
      • Implementing Cube Perspectives
      • Practice: Implementing Actions, Translations, and Perspectives
    • Lesson 4: Creating Calculations and Queries with MDX
      • Understanding MDX Syntax
      • Applying MDX Functions
      • Creating Calculated Members
      • Defining Named Sets.
      • Practice: Extending Cubes with MDX Expressions.
    • Case Scenario: Extending SSAS Cubes
    • Chapter Summary
  • 8 Defining SSAS Storage, Partitions, and Aggregations
    • Before You Begin
    • Lesson 1: Defining Measure Group Partitions and Storage
      • Understanding Partitions
      • Creating Measure Group Partitions
      • Selecting Partition Storage Modes
      • Understanding Proactive Caching
      • Practice: Defining Measure Group Partitions and Storage
    • Lesson 2: Designing Partition Aggregations
      • Understanding Aggregations
      • Defining Aggregations with the Aggregation Design Wizard
      • Defining Aggregations with the Usage-Based Optimization Wizard
      • Practice: Designing Partition Aggregations
      • Case Scenario: Implementing Low-Latency OLAP. xiv Table of Contents
      • Chapter Summary.
    • 9 Developing SSAS Data Mining Models
      • Before You Begin
      • Lesson 1: Preparing for Data Mining
        • Data Mining Project Lifecycle
        • Preparing Data for Data Mining
        • Practice: Preparing Data for Data Mining
      • Lesson 2: Creating a Data Mining Structure and Data Mining Models
        • The Data Mining Algorithms.
        • Practice: Creating Predictive Models
      • Lesson 3: Creating Association, Sequence, and Forecasting Models
        • Mapping Mining Structure Attributes to Source Columns.
        • Case Definitions and Nested Tables.
        • Practice: Creating Association, Sequence, and Forecasting Models
      • Lesson 4: Using Cube Sources and Configuring Data Mining Algorithms
        • Using Cube Sources
        • Configuring Algorithm Parameters
        • Model Parameters Practice: Creating a Model from a Cube and Refining
      • Case Scenario: Developing SSAS Data Mining Models.
      • Chapter Summary.
  • 10 Developing SSRS Reports - Before You Begin - Lesson 1: Creating an SSRS Project and Report in BIDS - Using the Report Project Wizard - Modifying Project Properties - Modifying Report-Level Properties - Practice: Creating and Modifying a Report - Lesson 2: Developing Report Objects with the Report Designer - Modifying Report Item Properties - Adding Report Objects to a Report - Practice: Modifying Report Items Table of Contents xv
    • Lesson 3: Working with Advanced Report Object Properties - Toggling Object Visibility
      • Defining Report Actions
      • Practice: Modify Advanced Report Object Properties
    • Lesson 4: Creating a Dataset from a Data Source
      • Creating a New Report Dataset
      • Working with an SSAS-Based Dataset.
      • Practice: Creating Report Datasets
    • Lesson 5: Applying Dataset Filters and Groups
      • Assigning Datasets to Data Regions
      • Applying Filters, Groups, and Sorts to Data Regions
      • Applying Aggregates to Data Regions
      • Practice: Creating a Table Data Region with Running Totals
    • Case Scenario: Building Reports for the AdventureWorks Intranet
    • Chapter Summary
  • 11 Formatting and Extending SSRS Reports
    • Before You Begin
    • Lesson 1: Assigning Parameters Within Reports
      • Creating Parameters in Report Datasets.
      • Exposing Parameters to Users
      • Binding Datasets to Parameters
      • Working with Parameter Defaults
      • Working with Parameters in URLs
      • Practice: Creating and Applying Parameters to Reports
    • Lesson 2: Extending Reports with Expressions
      • Extending Report Properties with Expressions
      • Leveraging the < Code > Element in a Report
      • Invoking Embedded Functions with Expressions
      • Practice: Setting Properties and Making Them Dynamic.
    • Lesson 3: Creating Report Builder Models
      • for a Report Model Creating the Project and Data Source and a DSV
        • Using the Report Model Wizard for Relational Databases. xvi Table of Contents
        • Working with Report Model Projects
        • Creating a Report Model on an SSAS Cube
        • Practice: Creating a Report Builder Model
    • Case Scenario: Creating a Reporting Services Infrastructure.
    • Chapter Summary.
  • 12 Deploying and Configuring SSIS Packages
    • Before You Begin
    • Lesson 1: Enabling and Creating Package Configurations
      • Understanding Package Configurations
      • Enabling SSIS Package Configurations
      • Creating a Configuration.
      • Leveraging Two-Pass Package Configurations.
      • Practice: Using Configurations to Make Package Properties Dynamic
    • Lesson 2: Deploying SSIS Packages.
      • Understanding Package Deployment
      • Creating an Installer Kit by Using the Package Deployment Utility
      • Deploying Packages
      • Using the SSIS Command-Line Management Utility, DTUtil
      • Practice: Deploying SSIS Packages
    • Case Scenario: Deploying SSIS Packages
    • Chapter Summary.
  • 13 Deploying and Processing SSAS Objects.
    • Before You Begin
    • Lesson 1: Deploying SSAS Objects
      • Deploying SSAS Projects with BIDS
      • Using the Deployment Wizard
      • Running XMLA Scripts for Deployment
      • Using the Synchronize Database Wizard
      • Practice: Deploying SSAS Objects.
    • Lesson 2: Processing SSAS Objects
      • Understanding SSAS Processing Options
        • Processing SSAS Objects in BIDS Table of Contents xvii
        • Processing SSAS Objects in SSMS
        • Setting Advanced Processing Options with Proactive Caching
        • Practice: Processing SSAS Objects
    • Lesson 3: Processing Data Mining Objects - Understanding Data Mining Processing - Processing Mining Structures and Models - Practice: Processing Data Mining Objects
    • Case Scenario: Deploying and Processing SSAS Objects
    • Chapter Summary
  • 14 Deploying and Scheduling SSRS Reports
    • Before You Begin
    • Lesson 1: Deploying New Reports and Changes
      • Report Deployment Properties in BIDS
      • Deploying and Redeploying Reports in BIDS
      • Uploading a Report File in SSMS and Report Manager.
      • Deploying Report Builder Models and Reports.
      • Practice: Deploying Reports
    • Lesson 2: Creating Report Schedules and Subscriptions.
      • Creating Shared Schedules
      • Defining a Report-Specific Schedule
      • Applying a Subscription to a Report.
      • Practice: Creating Report Schedules and Subscriptions.
    • Lesson 3: Defining Data-Driven Subscriptions and Rendering Formats.
      • Creating a Data-Driven Subscription
      • Specifying the Subscription Delivery Format and Location
      • Practice: Creating Data-Driven Subscriptions
    • Case Scenario: Deploying and Scheduling SSRS Reports.
    • Chapter Summary
  • 15 Securing and Executing SSIS Packages
    • Before You Begin
    • Lesson 1: Setting Package Roles, Protection Levels, and the Password - Understanding and Setting the Package Protection Level. xviii Table of Contents - Assigning a Package Password - Assigning Roles and Securing Packages Stored in msdb - Managing Package Security with DTUtil - Practice: Encrypting a Package and Assigning Package Roles.
      • Lesson 2: Creating Execution Command Lines - Configuring Package Execution by Using DTExecUI - Using DTExec for Package Execution - Practice: Executing Packages with DTExecUI and DTExec
      • Lesson 3: Managing, Scheduling, and Executing Packages in SSMS - Executing Packages in SSMS with the SSIS Service - Creating SQL Server Agent Jobs to Execute SSIS Packages - Practice: Scheduling a Package in SQL Server Agent
      • Case Scenario: Securing and Scheduling SSIS Packages.
      • Chapter Summary.
  • 16 Administering and Securing SSAS Cubes - Before You Begin - Lesson 1: Implementing User Security on SSAS Cubes - Understanding User Security - Creating Roles and Applying User Security to Cubes - Defining Advanced SSAS Cell Security - Setting Drillthrough Security. - Testing Database Role Security - Practice: Implementing User Security on SSAS Cubes - Lesson 2: Creating and Scheduling SSAS Backups with SSMS - Backing Up an SSAS Database in SSMS. - Scheduling SSAS Backups in SQL Server Agent - Scripting SSAS Objects in SSMS - Practice: Creating and Scheduling SSAS Backups with SSMS
    • Lesson 3: Tracing and Monitoring SSAS Instances - Working with SQL Server Profiler for SSAS Tracing. - Using Performance Monitor to Understand SSAS Performance - Understanding SSAS Performance Counters - Configuring Performance Monitor Table of Contents xix - Practice: Tracing and Monitoring SSAS Instances
    • Case Scenario: Administering and Securing SSAS Cubes.
    • Chapter Summary
  • 17 Securing and Querying SSAS Data Mining Models
    • Before You Begin
    • Lesson 1: Testing the Accuracy of Models.
      • Accuracy of Predictive Models
      • Accuracy of Other Models
      • Practice: Testing Model Accuracy
    • Lesson 2: Creating Data Mining Queries and Reports.
      • Prediction Queries in BIDS and SSMS
      • The DMX Language
      • Prediction Queries in Reports.
      • Practice: Creating a Report Based on DMX Query and DMX Language
    • Lesson 3: Securing Data Mining Models
      • SSAS Properties.
      • SSAS Roles, Permissions, and Data Sources
      • Practice: Securing Data Mining Models
    • Case Scenario: Securing and Querying SSAS Data Mining Models
    • Chapter Summary
  • 18 Managing and Securing SSRS Reports
    • Before You Begin
    • Lesson 1: Creating SSRS Roles and Item Access in Report Manager.
      • Understanding SSRS Item-Level Roles
      • Creating a New SSRS Role in Report Manager
      • Understanding Object Permissions and Assignment to Roles
      • Assigning Object Permissions to Roles
      • Practice: Creating New Roles in Report Manager
    • Lesson 2: Assigning Item Permissions and Site Security Access.
      • Understanding SSRS System-Level Roles
      • Creating a New SSRS System-Level Role in Report Manager

xxi

Introduction

This training kit is designed for business intelligence developers and administrators who plan to take the Microsoft Certified IT Professional (MCITP) Exam 70-445, Microsoft SQL Server 2005 Business Intelligence – Implementation and Maintenance. The primary objective of this exam is to certify that business intelligence developers and administrators know how to implement and maintain solutions built on the SQL Server™ 2005 business intelligence platform that includes SQL Server 2005 Integration Services (SSIS), SQL Server 2005 Analysis Services (SSAS), and SQL Server 2005 Reporting Services (SSRS). We assume that before you begin using this kit, you have experience developing or implementing business intelligence solu- tions. We also assume that you have experience managing or supporting business intelligence projects’ security, deployment, and maintenance. The Preparation Guide for Exam 70-442 is available from http://www.microsoft.com/learning/exams/70-445.mspx. The labs in this train- ing kit will use Microsoft SQL Server 2005 Enterprise Edition or Microsoft SQL Server 2005 Developer Edition, and a 180-day evaluation edition is included on the companion DVD. If you do not have access to this software, you can download a 180-day trial of SQL Server 2005 from http://www.microsoft.com/sql/downloads/trial-software.mspx. You can also consider purchas- ing SQL Server 2005 Development Edition, which contains all required features. By using this training kit, you will learn how to: n Install and configure the SQL Server 2005 business intelligence components. n Work with the design and management tools in SQL Server 2005 for business intelligence. n Develop and deploy SSIS projects. n Develop and deploy SSAS solutions. n Implement, configure, and deploy SSRS reports. n Secure, manage, and troubleshoot SSIS packages. n Secure SSAS cubes and dimensions. n Manage and secure SSRS report servers.

Hardware Requirements

We recommend that you use a test workstation, test server, or staging server to complete the exercises in each lab. However, it would be beneficial for you to have access to production- ready data in your organization. If you need to set up a workstation to complete the practice exercises, the minimum system requirements are: n A computer with a 600 MHz Pentium III compatible or faster processor. n 512 MB of RAM or more (1 GB or higher recommended).

xxii Introduction

n 450 MB additional free hard disk space if you plan to install SQL Server Books Online and sample databases. n 450 MB additional free hard disk space if you plan to install SQL Server Books Online and sample databases. n A CD-ROM drive or DVD-ROM drive. n A Super VGA (1024 x 768) or higher resolution video adapter and monitor. n A keyboard and Microsoft mouse, or compatible pointing device.

Software Requirements

Note that you will need SQL Server 2005 installed with the business intelligence compo- nents, tools, and samples in order to complete the labs included with each chapter. Although these products can be installed on a production server, it is not recommended that you use a production installation for this training kit. Instead, install these products and execute the labs on a single development machine. The following software is required to complete the lab exercises: n A compatible operating system: SQL Server 2005 can be installed on many versions of Windows server and desktop operating systems (OS), from Windows 2000 to Windows Vista. See http://msdn .microsoft.com/en-us/library/ms143506.aspx to help you choose a compatible SQL Server 2005 version. q In general, SQL Server 2005 Enterprise Edition can be installed on many of the Server operating system products (such as Windows 2000 SP4 or Windows Server 2003), but it cannot be installed on the desktop operating systems. q SQL Server 2005 Developer Edition can be installed on the same Windows server editions that the Enterprise Edition can be installed on, and it can also be installed on the desktop operating systems, such as Windows XP and Windows Vista. NOTE For Windows Vista, you also need SQL Server 2005 Service Pack 2. You can downlaod SQL Server 2005 SP2 from http://technet.microsoft.com/en-us/sqlserver /bb426877.aspx.

n SQL Server 2005: A 180-day evaluation of SQL Server Enterprise Edition is included on the companion DVD with this book. A 180-day evaluation of SQL Server 2005 is avail- able as a free download from the MSDN Web site at http://www.microsoft.com/sql/down- loads/trial-software.mspx. For instructions on downloading and installing the business intelligence components of SQL Server 2005 Enterprise Edition, see Chapter 1 of this training kit, “Installing SQL Server 2005 Business Intelligence Components.”