This module introduces students to Microsoft® SQL Server™ 2000 Analysis Manager and how to build online analytical processing OLAP cubes by using the Cube and Dimension Wizards.. This is
Trang 1Contents
Overview 1
Previewing Analysis Manager 3
Review 27
Module 2: Introducing Analysis Manager
Wizards
Trang 2to represent any real individual, company, product, or event, unless otherwise noted Complying with all applicable copyright laws is the responsibility of the user No part of this document may
be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Microsoft Corporation If, however, your only means of access is electronic, permission to print one copy is hereby granted
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
2000 Microsoft Corporation All rights reserved
Microsoft, BackOffice, MS-DOS, Windows, Windows NT, <plus other appropriate product
names or titles Replace this example list with list of trademarks provided by copy editor Microsoft is listed first, followed by all other Microsoft trademarks in alphabetical order > are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A and/or other countries
<This is where mention of specific, contractually obligated to, third party trademarks, which are added by the Copy Editor>
The names of companies, products, people, characters, and/or data mentioned herein are fictitious and are in no way intended to represent any real individual, company, product, or event, unless otherwise noted
Other product and company names mentioned herein may be the trademarks of their respective owners
Trang 3This module introduces students to Microsoft® SQL Server™ 2000 Analysis Manager and how to build online analytical processing (OLAP) cubes by using the Cube and Dimension Wizards Integrating lecture topics and demonstration, you create a cube with four dimensions Each dimension illustrates a unique method for dimension building After building the cube, you process it and review the results in the Analysis Manager browser
This is an overview module where students learn how to build, process, and view a simple cube by using Analysis Manager built-in wizards You introduce many concepts quickly, leaving detailed discussion and analysis for later modules where subjects are explored in greater depth
After completing this module, students will be able to:
! Describe SQL Server 2000 Analysis Server components
! Navigate through the basic interfaces of Analysis Manager
! Prepare to create a cube by reviewing data sources and initiating the Cube Wizard
! Create an OLAP cube by using the Cube and Dimension Wizards
! Process a cube
! Browse the cube data and metadata by using the Analysis Manager browser
Materials and Preparation
This section provides you with the required materials and preparation tasks that are needed to teach this module
Required Materials
To teach this module, you need Microsoft PowerPoint® file 2074A_02.ppt
Preparation Tasks
To prepare for this module, you should:
! Read all of the student materials for this module
! Read the instructor notes and margin notes
! Practice combining the lecture with the demonstrations
! Review the Trainer Preparation presentation for this module on the Trainer Materials compact disc
! Review any relevant white papers that are located on the Trainer Materials compact disc
Presentation:
90 Minutes
Lab:
00 Minutes
Trang 4Use the following strategy to present this module:
The bulk of this module requires that you combine your lecture with demonstrations of the topics being discussed
! Defining Terms Define the basic terms and components of Analysis Services
! Previewing Analysis Manager Begin by showing students how to start Analysis Manager Next, describe the console tree view and how it is used to navigate Analysis Manager Show students the different menus available in Analysis Manager Finish by showing the metadata view and the data pane
! Preparing to Create a Cube
Introduce students to the Module 02 database, describing the fact table,
dimension keys, and measures Explain that each dimension key will be used to create a different type of dimension Finally, explain that a database structure must be set up before a cube can be built Show how to set up the OLAP database, combining your lecture with a demonstration
! Building the Sales Cube
First, show students how to select a fact table and measures for the cube Next, explain how to create four different types of dimensions: a star schema dimension, a snowflake dimension, a parent-child dimension, and a Time dimension Demonstrate how to create each type of dimension as you give the lecture Show students how to finalize the cube, browse sample data, and name the cube Finally, summarize the characteristics of the dimensions that were created
! Processing the Cube Explain that, for a cube to contain useful data, it must be processed Take students through the steps of processing a cube, integrating the lecture with
a demonstration
! Viewing the Results Explain that the Analysis Manager provides a simple browser that can be used to view values in a processed cube Show students how to browse data
in the Sales cube Also, show them how to browse the metadata for the
cube Integrate your lecture with a demonstration
Trang 5Customization Information
This section identifies the lab setup requirements for a module and the configuration changes that occur on student computers during the labs This information is provided to assist you in replicating or customizing Microsoft Official Curriculum (MOC) courseware
There are no labs in this module, and as a result, there are no lab setup requirements or configuration changes that affect replication or customization
Trang 7Overview
! Defining Terms
! Previewing Analysis Manager
! Preparing to Create a Cube
! Building the Sales Cube
! Processing the Cube
! Viewing the Results
This module provides you with an introduction to Microsoft® SQL Server™
2000 Analysis Services
The objective of the module is to give you a comprehensive introduction to cube building fundamentals by using the Analysis Manager wizards, which include the Cube Wizard and the Dimension Wizard
After completing this module, you will be able to:
! Describe SQL Server 2000 Analysis Server components
! Navigate through the basic interfaces of Analysis Manager
! Prepare to create a cube by reviewing data sources and initiating the Cube Wizard
! Create an online analytical processing (OLAP) cube by using the Cube and Dimension Wizards
In this module, you will learn
about the fundamentals of
cube building within
Analysis Manager
Trang 8The following are the product definitions for Analysis Services:
Microsoft OLAP and data mining product that ships with SQL Server 2000 and includes the server and client software
Server contains an OLAP engine and a data mining engine that runs as a service under Microsoft Windows® 2000, or Microsoft Windows NT® with Service Pack 5 or later The Analysis Server service is called
MSSQLServerOLAPService
Analysis Manager runs under Windows 2000 and Windows NT
referred to as PTS PTS runs under Windows 2000, Windows NT, Microsoft Windows 98, and Microsoft Windows 95 PTS is different from Microsoft Excel PivotTables®
Topic Objective
To define commonly used
terms
Lead-in
Before creating databases
and cubes by using the
Analysis Manager, you must
understand fundamental
terms applicable to Analysis
Services
Trang 9Previewing Analysis Manager
Analysis Manager is the interface for designing and administering Analysis Server databases and cubes It is a snap-in application in Microsoft
Management Console (MMC), a common interface for hosting administrative tools Analysis Manager contains various panes and menus that assist you in administering Analysis Server objects
Console Tree View
The tree view in the left pane of MMC, also referred to as the console tree, is the primary means for navigating Analysis Manager
Each level of the tree contains folders, OLAP objects, or both The Analysis Servers folder displays a list of servers that are available to you Because only one server can run on a single computer at a time, each server displays the name
of the computer running it
The server name acts as a folder for OLAP databases on that server Each Analysis Server can contain one or more databases Databases can manage one
or many cubes Shared components such as dimensions, roles, and data sources are also stored at the database level
The following folders are found under each OLAP database folder:
Manager and to explain all
of the major interface
components
Lead-in
Analysis Manager is the
user interface for designing
and administering Analysis
Server databases and
cubes
Delivery Tips
Note that more than one
server may appear below
the Analysis Servers folder
When performing the
demonstration, ensure that
students log on to the
Analysis Server located on
their own computers
Deliver these materials
while performing an informal
demonstration of the
Analysis Manager
Stress the usefulness of
right-clicking In Analysis
Manager, when you want to
perform actions on server
objects, you usually do so
by right-clicking the object
Do not spend too much time
on the data pane at this
point Using the data pane
for browsing data is covered
more thoroughly later in the
module
Trang 10Menu System
You have access to several menus in Analysis Manager and MMC MMC
snap-in applications such as Analysis Manager have two levels of menus
The top-level menusConsole, Window, and Helpbelong to MMC itself and do not apply to the current snap-in application
The second level of menus is actually a toolbar This toolbar contains the
Action, View, and Help menus, which are specific to the current MMC snap-in
applicationin this case, Analysis Manager
The Action menu, which contains most of the functionality, is
context-sensitive In other words, the commands that appear on the menu change depending on the object you select in the tree view The same commands that
appear on the Action menu also appear on a shortcut menu displayed by
right-clicking an item in the tree view
Metadata View
The details pane can display a metadata view, which is a convenient technique
to review statistics about databases, cubes, and dimensions
The metadata view is context-sensitive The information that is displayed is dependent on the folder that is selected in the Tree view For example, at a particular cube level, dimensions, measures, and cube size are among the elements available in the metadata view
Data Pane
The data pane enables you to browse the data of your cubes This view is accessible only at the cube level
The details pane displays the Getting Started, Metadata, and Data tabs
only when HTML mode is enabled To enable or disable HTML mode on the
toolbar, click View and then click HTML
Note
Trang 11# Preparing to Create a Cube
! Reviewing the Data Source
! Setting up the OLAP Database
Before you develop a prototype cube, you review the data source that was used
to build the cube You must also understand how to create the OLAP database that contains the cube, as well as all of the related cube objects
Topic Objective
To introduce the topics that
this section covers
Lead-in
Before you develop a
prototype cube, review the
data source used to build
the cube
Delivery Tip
Use this slide simply to
introduce the bullets on this
slide Cover the two
sections when you arrive at
the next two slides
Trang 12Reviewing the Data Source
You base the cube created in this module on a SQL Server database called
Module 02 The database is a scaled-down version of the Foodmart 2000
database that is included with Analysis Services
The Module 02 data warehouse is small and uncomplicated so that you can
easily describe its structure This database illustrates basic dimension types
For more information about different types of dimensions, see module 4,
“Setting up Dimensions”, in course 2074A, Designing and Implementing OLAP
Solutions with Microsoft SQL Server 2000
Module 02 Database Structure
The preceding diagram illustrates the structure of the Module 02 database, which consists of a single fact table: SalesFact
The SalesFact table has four dimension keys:
To introduce the Module 02
database, which is used as
the data source for the
cube
Lead-in
The cube that you will
create in the module is
based on a simple SQL
Server database
Delivery Tip
You can present the tables
and keys by using the slide,
or you can open SQL Server
Enterprise Manager directly,
connect to the Module 02
database, and open the
Module 02 Schema
Trang 13Fact Table and Dimension Table Relationships
The following describes how the fact table and dimension tables are used to create the cube dimensions:
! The State_ID key is joined to a single dimension table, creating a star
schema dimension
! The Product_ID key is joined to a chain of dimension tables, creating a
snowflake schema dimension
! The Employee_ID key is joined to the Employee dimension table, creating
a parent-child dimension
! The Month key will create an entire hierarchy by using the Dimension
Wizard
Trang 14Setting Up the OLAP Database
! Creating the New Database
! Starting the Cube Wizard
! Specifying a Data Source
You must set up an OLAP database before designing and building a cube An OLAP database in Analysis Services is a collection of cubes and related cube
objects After creating an OLAP database, you can begin creating the Module
02 database cube by starting the Cube Wizard
The first table to assign in the Cube Wizard is the fact table To assign a fact table for a cube, you must specify a data source for the database To do so, you
refer the Analysis Server Module 02 OLAP database to the SQL Server
Module 02 database
Topic Objective
To explain how to create a
new OLAP database and to
prepare for the creation of
the Module 02 database
cube
Lead-in
You must create an OLAP
database before designing
and building a cube
Trang 15Demonstration: Preparing to Build the Sales Cube
In this demonstration, you will learn how to perform the tasks that are performed before building an OLAP cube You will connect to the Analysis Server, define an OLAP database, and specify the data source for the cube
! To verify that the Analysis Server is running on your computer
1 Log in to the NWTraders classroom domain by using the data in the
5 Scroll down, and verify that the service MSSQLServerOLAPService
exists and is running in the right pane of the Computer Management window
The status of MSSQLServerOLAPService should indicate Started
6 If the service is not started, right-click MSSQLServerOLAPService, and then click Start
7 Close the Computer Management window
Topic Objective
To demonstrate how to
review the data source for
the cube and create the
OLAP database that
contains the cube
Lead-in
In this demonstration, you
will learn how to perform the
tasks that are performed
before building an OLAP
Periodically ask students
how they are doing to
ensure that they are keeping
up with your demonstration
The procedures in this
demonstration are:
1 Verify running service
2 Open Analysis Manager
3 Create OLAP Database
4 Start Cube Wizard
5 Define Data Source
You may want to
incorporate these
demonstration procedures in
the previous lecture topics
Trang 16! To start Analysis Manager and connect to the Analysis Server
1 Click Start, point to Programs, point to Microsoft SQL Server, point to
Analysis Services, and then click Analysis Manager
Microsoft Management Console and Analysis Manager are invoked
Where you invoke Analysis Manager on the Start menu depends on
how Analysis Services was configured during installation The procedure here describes the steps for starting Analysis Manager if a default installation was performed on your computer
2 In the tree pane of the MMC console, expand the Analysis Servers folder
3 Double-click the server name to which you will be connecting
! To define an OLAP database
1 Right-click the local Analysis Server, and then click New Database to
display the Database dialog box
2 Type Module 02 in the Database name box, type Market Sales in the
Description box, and then click OK
3 Expand the Module 02 database folder in the tree view
You now see five folders below the database When you first define a database, these folders are empty
! To start the Cube Wizard
1 In the Module 02 database, right-click the Cubes folder, point to New
Cube, and then click Wizard
2 At the initial welcome page, click Next
! To specify a data source
1 From the Select a fact table from a data source page, click New Data
Source
The Data Link Properties dialog box appears
2 Click Microsoft OLE DB Provider for SQL Server, and then click Next
3 On the Connection tab at step 1, type localhost in the Select or enter a
server name box
4 At step 2, click Use Windows NT Integrated security
5 At step 3, in the Select the database on the server box, click Module 02
from the list
It will take a few seconds to connect to your computer’s SQL Server because it searches for the available databases
6 Click the Test Connection button to ensure the data source definition is correct, and then click OK
7 Click OK, closing the Data Link Properties dialog box
Notice that the data source and its tables are now accessible from the Data
sources and tables box
Note
Trang 17# Building the Sales Cube
! Selecting the Fact Table and Measures
! Creating a Star Schema Dimension
! Creating a Snowflake Dimension
! Creating a Parent-Child Dimension
! Creating a Time Dimension
! Finalizing the Cube
! Summarizing the Sales Dimensions
After you create an OLAP database and specify a data source in the database, you can build a cube A cube contains measures, such as sales or cost A cube also contains dimensions, such as region, time, and product
In this section, you will learn the basic procedures required to build a cube within Analysis Services You will learn about the following topics:
! Selecting the fact table and measures
! Creating the dimensions
! Finalizing the cube
! Summarizing the Sales dimensions
Topic Objective
To introduce the next
section, which takes
students through the
process of defining their
cubes and dimensions
Lead-in
After you create an OLAP
database and specify a data
source within the database,
you can build a cube
Delivery Tip
Use this slide as an
introduction to the section
Do not describe each
dimension type at this time