Book Image

Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide

By : Abolfazl Radgoudarzi, Reza Rad
Book Image

Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide

By: Abolfazl Radgoudarzi, Reza Rad

Overview of this book

Table of Contents (19 chapters)
Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – running DMX queries from a .NET application


In this example, we will deploy the existing predictive data mining model to Analysis Services. Then, we will use a DMX query in the .NET application to create a PREDICTION JOIN between the mining model and the raw data in a database table. As a result, we will have a model applied to the dataset through C#, .NET, and DMX. Perform the following steps to run queries from an application:

  1. Open the source code of Chapter 8, Identifying Data Patterns – Predictive Models in SSAS, which is Chapter 08 Data Mining Predictive Models.sln in SSDT.

  2. Right-click on the project (not the solution) and go to Properties in the pop-up menu.

  3. In the Property Page menu, go to the Deployment tab, and change Database to Chapter 08 Data Mining Predictive Models. Then, click on OK and deploy the project, as shown in the following screenshot:

  4. After successful deployment of the project, open SSMS and connect to your local SSAS Multidimensional engine. In that...