Microsoft Analysis Services

Microsoft SQL Server Analysis Services (SSAS ) is an online analytical processing (OLAP) and data mining tool in Microsoft SQL Server. SSAS is used as a tool by organizations to analyze and make sense of information possibly spread out across multiple databases, or in disparate tables or files. Microsoft has included a number of services in SQL Server related to business intelligence and data warehousing. These services include Integration Services, Reporting Services and Analysis Services. Analysis Services includes a group of OLAP and data mining capabilities and comes in two flavors multidimensional and tabular, where the difference between the two is how the data is presented. In a tabular model, the information is arranged in two-dimensional tables which can thus be more readable for a human. A multidimensional model can contain information with many degrees of freedom, and must be unfolded to increase readability by a human.

History
In 1996, Microsoft began its foray into the OLAP Server business by acquiring the OLAP software technology from Canada-based Panorama Software. Just over two years later, in 1998, Microsoft released OLAP Services as part of SQL Server 7. OLAP Services supported MOLAP, ROLAP, and HOLAP architectures, and it used OLE DB for OLAP as the client access API and MDX as a query language. It could work in client-server mode or offline mode with local cube files.

In 2000, Microsoft released Analysis Services 2000. It was renamed from "OLAP Services" due to the inclusion of data mining services. Analysis Services 2000 was considered an evolutionary release, since it was built on the same architecture as OLAP Services and was therefore backward compatible with it. Major improvements included more flexibility in dimension design through support of parent child dimensions, changing dimensions, and virtual dimensions. Another feature was a greatly enhanced calculation engine with support for unary operators, custom rollups, and cell calculations. Other features were dimension security, distinct count, connectivity over HTTP, session cubes, grouping levels, and many others.

In 2005, Microsoft released the next generation of OLAP and data mining technology as Analysis Services 2005. It maintained backward compatibility on the API level: although applications written with OLE DB for OLAP and MDX continued to work, the architecture of the product was completely different. The major change came to the model in the form of UDM - Unified Dimensional Model.

Timeline
The key events in the history of Microsoft Analysis Services cover a period starting in 1996.

Multidimensional Storage modes
Microsoft Analysis Services takes a neutral position in the MOLAP vs. ROLAP arguments among OLAP products. It allows all the flavors of MOLAP, ROLAP and HOLAP to be used within the same model.

Partition storage modes

 * MOLAP - Multidimensional OLAP - Both fact data and aggregations are processed, stored, and indexed using a special format optimized for multidimensional data.
 * ROLAP - Relational OLAP - Both fact data and aggregations remain in the relational data source, eliminating the need for special processing.
 * HOLAP - Hybrid OLAP - This mode uses the relational data source to store the fact data, but pre-processes aggregations and indexes, storing these in a special format, optimized for multidimensional data.

Dimension storage modes

 * MOLAP - dimension attributes and hierarchies are processed and stored in the special format
 * ROLAP - dimension attributes are not processed and remain in the relational data source.

Tabular storage mode

 * In-Memory - Tabular storage mode compresses data and stores the model in memory for faster execution of queries.

APIs and object models
Microsoft Analysis Services supports different sets of APIs and object models for different operations and in different programming environments.

Querying

 * XML for Analysis - The lowest level API. It can be used from any platform and in any language that supports HTTP and XML
 * OLE DB for OLAP - Extension of OLEDB. COM based and suitable for C/C++ programs on Windows platform.
 * ADOMD - Extension of ADO. COM Automation based and suitable for VB programs on Windows platform.
 * ADOMD.NET - Extension of ADO.NET. .NET based and suitable for managed code programs on CLR platforms.
 * ADO.NET Entity Framework - Entity Framework and LINQ can be used on top of ADOMD.NET (SSAS Entity Framework Provider is required)

Administration and management

 * DSO - For AS 2000. COM Automation based and suitable for VB programs on Windows platform.
 * AMO - For AS 2005 and later versions. .NET based and suitable for managed code programs on CLR platforms.

Query languages
Microsoft Analysis Services supports the following query languages

Data definition language (DDL)
DDL in Analysis Services is XML based and supports commands such as , , , and . For data mining models import and export, it also supports PMML.

Data manipulation language (DML)

 * MDX - for querying OLAP cubes
 * LINQ - for querying OLAP cubes from .NET using ADO.NET Entity Framework and Language INtegrated Query (SSAS Entity Framework Provider is required)
 * SQL - small subset of SQL (in form of management views also called as DMV's) for querying OLAP cubes and dimensions as if they were tables
 * DMX - for querying Data Mining models
 * DAX - for querying Tabular models