What you need for this book
A Microsoft SQL Server 2016 full installation or at least the following components are required:
- SQL Server 2016 Engine
- Analysis Services 2016
- Microsoft SQL Server Management Studio
- Microsoft SQL Server Data Tools
We recommend the Developer, Enterprise, or the Trial Edition of Microsoft SQL Server 2016. Standard Edition is not recommended because it does not support all the features and a few examples might not work using the Standard Edition.
The Developer Edition has the full capabilities of the Enterprise Edition and is for development and testing only. The Developer Edition is free if you sign up for the free Visual Studio Dev Essentials program. To download the SQL Server 2016 Developer Edition free, you can start from joining or accessing the Visual Studio Dev Essentials site:
https://www.visualstudio.com/dev-essentials/
You can also access it from this tiny url:
Microsoft SQL Server 2016 Trial Edition is for evaluation only and is valid for 180 days. Use this link to go to Microsoft Evaluation Center:
Both the relational database file and the multidimensional Adventure Works project files are required:
- AdventureWorks Sample Databases and Scripts for SQL Server 2016: this is the relational database; use this link to download the AdventureWorks databases and scripts: http://tinyurl.com/z8k479p
- AdventureWorks Multidimensional Model SQL Server 2012 or 2014 - Enterprise Edition: SSAS project files. The 2012 or 2014 tutorials are valid for SQL Server 2016.
We recommend the Enterprise Edition of the Multidimensional Model Adventure Works cube project. To download the installation files, use the following link to go to CodePlex:
http://tinyurl.com/AdventureWorks2012
For the 2014 Multidimensional Model Adventure Works cube project, go to Adventure Works 2014 Sample Databases on CodePlex:
For instructions on how to install the sample Adventure Works, see Install Sample Data and Projects for the Analysis Services Multidimensional Modeling Tutorial at this link:
Wide World Importers: The new SQL Server sample database
For the magnitude of SQL Server 2016 Microsoft has released a new sample database, the Wide World Importers database.
Both the 2008 and 2012 edition of the MDX Cookbook has been based off Adventure Works, which has been around since the SQL Server 2005 days. For the purpose of demonstrating MDX techniques and Analysis Services features, the Adventure Works sample database has continued to be a good choice for this 2016 edition.
For Creating PivotTable, see this section:
Microsoft Excel 2007 (or newer) with PivotTable is required.
Most of the examples will work with older versions of Microsoft SQL Server (2005 or 2008 or 2008 R2 or 2012). However, some of them will need adjustments because the Date dimension in the older versions of the Adventure Works database has a different set of years. To solve that problem, simply shift the date-specific parts of the queries few years back in time, for example, turn the year 2013 into the year 2002 and Q3 of the year 2013 to Q3 of 2003.