Search

Mining Model Designer

The Mining Model Designer provides a visual environment for creating, configuring, and testing data mining models in SQL Server Analysis Services (SSAS). It integrates with Visual Studio and SQL Server Data Tools (SSDT) to let you design models without writing code.

Key Features

Getting Started

  1. Open SQL Server Data Tools and create a new Analysis Services Multidimensional and Data Mining Project.
  2. Right‑click the Data Mining folder and choose New Mining Model.
  3. Select a Mining Structure (or create a new one) that defines the source data view.
  4. Choose an Algorithm (e.g., Microsoft Decision Trees, Microsoft Cluster).
  5. Configure model properties using the property grid on the right.
  6. Click Process to train the model.
  7. Use the Model Viewer to explore results.

Designing a Model

The designer surface consists of three panes:

Example: Building a Decision Tree

// No code needed – visual steps:
1. Select the "AdventureWorks" DSV.
2. Drag "ProductCategory" as the Predictor.
3. Drag "SalesAmount" as the Target.
4. Choose "Microsoft Decision Trees" as the algorithm.
5. Set "Maximum Height" to 5.
6. Process the model.
7. Open the Tree Viewer to see splits.

Testing and Validation

After processing, you can evaluate the model using the Mining Model Tester:

Deploying the Model

To make the model available to client applications:

  1. Right‑click the model in Solution Explorer and choose Deploy.
  2. Specify the target SSAS server name and database.
  3. Confirm deployment; the model becomes part of the SSAS instance and can be queried via DMX or the OPENQUERY function.

Best Practices

Resources