Book Image

SQL Server Analysis Services 2012 Cube Development Cookbook

Book Image

SQL Server Analysis Services 2012 Cube Development Cookbook

Overview of this book

Microsoft SQL Server is a relational database management system. As a database, it is a software product whose primary function is to store and retrieve data as requested by other software applications. SQL Server Analysis Services adds OLAP and data mining capabilities for SQL Server databases. OLAP (online analytical processing) is a technique for analyzing business data for effective business intelligence. This practical guide teaches you how to build business intelligence solutions using Microsoft’s core product – SQL Server Analysis Services. The book covers the traditional multi-dimensional model which has been around for over a decade as well as the tabular model introduced with SQL Server 2012. Starting with comparing MultiDimensional and tabular models – discussing the values and limitations of each, you will then cover the essential techniques for building dimensions and cubes. Following on from this, you will be introduced to more advanced topics, such as designing partitions and aggregations, implementing security, and synchronizing databases for solutions serving many users. The book also covers administrative material, such as database backups, server configuration options, and monitoring and tuning performance. We also provide a primer on MultiDimensional eXpressions (MDX) as well as Data Analysis expressions (DAX) languages. This book provides you with data cube development techniques, and also the ongoing monitoring and tuning for Analysis Services.
Table of Contents (19 chapters)
SQL Server Analysis Services 2012 Cube Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Scripting Tabular Models using XMLA


In this recipe, you will learn how to create XMLA files that can be used for a variety of purposes including deploying and processing.

Getting ready

Unlike most of our work to this point, we will now be working primarily out of SQL Server Management Studio. We will also be working with a deployed Tabular Model database. If you have not deployed your database yet, refer to the previous recipe for deployment options.

How to do it…

While XMLA can definitely look daunting, generating XMLA scripts is quite easy, as shown in the following steps:

  1. Open up Microsoft SQL Server Management Studio, and connect to the tabular instance you are using for development.

  2. Right-click on the database and navigate to the following sequence of options: Script | Script Database as | CREATE To | New Query Editor Window. This will generate the XMLA script to create the database in the query window. If you want to create a new database on a different server, you can use this script.

  3. The...