Creating SQL Cubes


An OLAP (OnLine Analytical Processing) cube is a data structure that allows fast analysis of data. It can also be defined as the capability of manipulating and analyzing data from multiple perspectives. The arrangement of data into cubes overcomes some limitations of relational databases.

For more information on cubes, refer to my previous article on cubes What are SQL Cubes?

Following the following steps to create your first cube.

Step 1: Open SQL Server Business Intelligence Development Studio

SqlCubes1.gif

Step 2: Create a new Analysis Services project using the SQL Server Business Intelligence Development Studio

SqlCubes2.gif

SqlCubes3.gif

Step 3: Define a data source

Right-click the Data Sources folder in the solution:

SqlCubes4.gif

Click Next

SqlCubes5.gif

Step 4 : Defining a Data Source View

Right-click the Data Source Views folder and following the create wizard

SqlCubes6.gif

Click next

On the Select Tables and Views wizard page, select tables and views from the list of objects that are available from the selected data source. Then click finish.

Step 5: Creating a CUBE with CUBE wizard.

Right-click on the CUBES folder and then click on the New CUBE then you will be seeing the following dialogue after clicking next:

SqlCubes7.gif

Click Next then select the Data Source View from down and then select the objects that needs to participate in the CUBE development. If you are not sure then click on the suggest button:

SqlCubes8.gif

Click next and select the desire measure columns and dimensions from the Data Source View finally we will see the following screen in the final step.

SqlCubes9.gif

On clicking the finish button your first cube is created.

Step 6: Deploy the cube and process

In Solution Explorer, right-click the project, and then click Deploy:

SqlCubes10.gif

Up Next
    Ebook Download
    View all
    Learn
    View all