SSAS Essentials
SSAS Essentials
Essentials
1. What is SSAS?
Microsoft SQL Server 2005 Analysis Services (SSAS) delivers online analytical
processing (OLAP) and data mining functionality for business intelligence
applications. Analysis Services supports OLAP by letting you design, create, and
manage multidimensional structures that contain data aggregated from other data
sources, such as relational databases. For data mining applications, Analysis
Services lets you design, create, and visualize data mining models that are
constructed from other data sources by using a wide variety of industry-standard
data mining algorithms.
• Supports ‘closing the loop’, where the user acts upon the data they see.
3. Data source: A data source in Microsoft SQL Server 2005 Analysis Services
(SSAS) represents a connection to a data source and contains the connection
string that defines how Analysis Services will connect to a physical data store
using a managed Microsoft .NET Framework or native OLE DB provider. The
connection string contains server name, database, security, timeout, and other
connection related information. You manage access to information stored in a data
source by using roles, and the granularity of such access is limited. Analysis
Services stores the metadata for a data source in an XML file, in Analysis
Services Scripting Language (ASSL) format.
4. Data Source Views: A data source view is the metadata definition of the schema
elements used by the UDM and by mining structures stored in an XML format. A
data source view contains the logical model of the schema used by database
objects—namely cubes, dimensions, and mining structures. A data source view:
• Contains the metadata that represents selected objects from one or more
underlying data sources, or the metadata that will be used to generate an
underlying relational data store
• Can be built over one or more data sources, allowing a cube and
dimension to be defined that integrate data from multiple sources
• Can contain relationships, calculated columns, and queries that are not
present in the underlying data source and which exist separate from the
underlying data sources
• A relationship from one table to another table in the same data source.
• The server role, a fixed role that provides administrator access to an instance
of Analysis Services.
• Start traces (other than for processing events, which can be performed by a
database role with Process access).
Database role: An Analysis Services database role defines user access to objects
and data in an Analysis Services database. A database role is created as a separate
object in an Analysis Services database, and applies only to the database in which
that role is created. Windows users and groups are included in the role by an
administrator, who also defines permissions within the role. The permissions
allow members to access and administer the database, in addition to the objects
and data within the database. Each permission has one or more access rights
associated with it, which in turn give the permission finer control over access to a
particular object in the database. For more information about the permissions and
access rights available to database roles.
Microsoft SQL Server 2005 Analysis Services (SSAS) uses both server and client
components to supply online analytical processing (OLAP) and data mining
functionality for business intelligence applications:
• Handle transactions
• Process calculations
• Create aggregations
• Schedule queries
• Caching objects
Port Description
2725 Existing Microsoft SQL Server 2000 Analysis Services instances.
2383 Microsoft SQL Server 2005 Analysis Services default instance.
2382 Redirector for other Microsoft SQL Server 2005 Analysis Services instances.
Client Architecture:
A role-playing dimension when there are multiple columns in a fact table that
each have foreign keys to the same dimension table.
15.What is a partition?
Auto Build is a feature that reviews the database metadata and structure to
makes recommendations about how to structure a cube or a dimension. When
using the Dimension Wizard with Auto Build enabled, you have the option for
the wizard to suggest attributes only or to suggest both attributes and user
hierarchies. Similarly, the Cube Wizard can examine the DSV, and identify the
fact and dimension tables and suggest new dimensions.
• Data definition language (DDL) statements used to create, drop, and work
with multidimensional objects.
SELECT
{ [Measures].[Sales Amount],
[Measures].[Tax Amount] } ON COLUMNS,
{ [Date].[Fiscal Time].[Fiscal Year].&[2002],
[Date].[Fiscal Time].[Fiscal Year].&[2003] } ON ROWS
FROM [Adventure Works]
WHERE ( [Sales Territory].[Southwest] )
Cubes can be very complex objects for users to navigate in Microsoft SQL Server
2005 Analysis Services. A single cube can represent the contents of an entire data
warehouse, with multiple measure groups in a cube representing multiple fact
tables and multiple dimensions based on multiple dimension tables. This can
result in a very complex and powerful cube, but the prospect can be daunting to
users who often only need to interact with a small portion of a cube in order to
satisfy their business intelligence and reporting requirements.In Microsoft SQL
Server 2005 Analysis Services (SSAS), you can use a perspective to reduce the
perceived complexity of a cube in Analysis Services by defining viewable subsets
of the cube that provide focused, business-specific or application-specific
viewpoints on a cube. The perspective controls the visibility of objects contained
by a cube, including measure groups, measures, dimensions, hierarchies,
attributes, KPIs, actions, and calculations, to a business intelligence application.
20.What is metadata?
Information about how the data is stored and structured, and perhaps more
importantly, what the data means, is called metadata. For example, when you
create an OLAP cube, you define not only what the measures are, but also how
they should be aggregated, what the caption should be, and even how the number
should best be formatted. Likewise, in an OLAP cube, when you create a
dimension with many attributes, you define which attributes are group able, and
whether any of the group able attributes should be linked together into a
hierarchy.
A measure group is simply the group of measures that share the same grain. When
you go to build your data warehouse, you would create a separate fact table for
each measure group. Conversely, if you already have a data warehouse with
several fact tables, you simply create a measure group for each fact table.
Processing is the step or series of steps that turn data into information for business
analysis. Processing is different depending on the type of object, but processing is
always part of turning data into information. Before you can process a local object
or project, you must deploy it by sending it to the server. During deployment, a
script is sent to the Analysis Services instance to re-create the project and
automatically run it. By default, deployment includes processing all of the objects
in the database. The Analysis Services objects that you have to keep up-to-date
through processing are measure groups, partitions, dimensions, cubes, mining
models, mining structures, and databases. When an object contains one or more
objects, processing the highest-level object causes a cascade of processing all the
lower-level objects. For example, a cube typically contains dimensions and
measure groups, each of which contains partitions. Processing any cube causes
processing of all the constituent dimensions and measure groups within the cube.
23.What are the three dimension that can be created using SSAS?
• Standard dimension
• Time dimension
• Parent-child dimension
MDX is used in two different ways within Analysis Services. First, it is a query language
—the tool for retrieving reports from an OLAP cube. In other words, MDX is the tool
used by client applications to retrieve values. Second, MDX is an expression language—
the tool used to calculate single values. For example, MDX is what you use to add
calculations to a cube. values. For example, MDX is what you use to add calculations to a
cube.
The difference between a derived measure and a calculated measure is when the
calculation is performed. A derived measure is calculated before aggregations are created,
and the values of the derived measure are stored in the cube. A calculated measure is
calculated after aggregations are created, and the values of a calculated measure aren’t
stored in the cube. The primary criterion for choosing between a derived measure and a
calculated measure is not efficiency, but accuracy.
27. While creating a new calculated member in a cube what is the use of property
called non-empty behavior?