Book Image

Getting Started with SQL Server 2012 Cube Development

Book Image

Getting Started with SQL Server 2012 Cube Development

Overview of this book

Analysis Services have been the number one OLAP engine for years. With the increased focus on business intelligence solutions, there is a shortage of professionals in this area. Start your journey into becoming a BI developer using the popular tools included in every SQL Server installation. Getting Started with SQL Server 2012 Cube Development teaches you through clear step-by-step exercises to create business intelligence solutions using Analysis Services. The knowledge gained through these practical examples can immediately be applied to your real-world problems. Getting Started with SQL Server 2012 Cube Development begins with an introduction to business intelligence and Analysis Services, the world's most-used cube engine. Guiding you through easy-to-understand examples to become a cube developer. Learn how to create a cube including all the advanced features such as KPIs, calculated measures, and time intelligence. Security and performance tuning will also be explored. You will learn how to perform and automate core tasks like deployment and processing. The main focus is on multidimensional cubes, but the creation of in-memory models will also be covered. You will learn everything you need to get started with cube development using SQL Server 2012.
Table of Contents (17 chapters)
Getting Started with SQL Server 2012 Cube Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Writing MDX queries using Management Studio


To write MDX queries, you need a query tool that you can use. SQL Server Data Tools is a tool that you use to develop your BI projects, to query the cube you use another familiar tool and that is SQL Server Management Studio.

Connecting to the cube using Management Studio

  1. Click on the Start button and then All Programs | Microsoft SQL Server 2012 | SQL Server Management Studio.

  2. Choose Analysis Services as the server type and write localhost\multidimensional as the server name (if you are using a different server then you need to type the correct server and instance name).

  3. Click on OK to connect to the Analysis Services instance.

  4. When you have connected to the cube, you will see the Object Explorer with your cube database. To create a new MDX query, click on the MDX button.

  5. In the query window, type the following query and execute it.

    --Query 5.3
    SELECT [Measures].[Sales Amount] ON COLUMNS,
      [Product].[Product Hierarchy].[Product Category] ON ROWS
      FROM...