How to Create OLAP cubes programmatically using Visual Studio

1.2k Views Asked by At

I am new to SQL Server Data Tools. After browsing the internet to learn the BI suite I found out that SSIS SSAS SSRS has more than just drag and drop. People are actually creating cubes and databases programmatically. Unfortunately, I couldn't find any resources on internet to learn how to code like this. Kindly guide me or share some links to learn to create cubes and databases programmatically.

1

There are 1 best solutions below

3
Magnus Lander On

Using BIML you can create SSIS packages programmatically. Combining BIML and TMSL allows you to script cube creation and processing. If you're set on creating multidimensional cubes and not tabular cubes then look at MDX.

Start by downloading BIML express for Visual Studio Data Tools. Then start to look at the connector for Analysis Server and the AnalysisServicesExecuteDdl element which allows you to write TMSL inside the component. Now, using TMSL you can create a cube. Why not just use BIML for everything and skip TMSL? Using TMSL instead of the available BIML elements for handling cubes removes the need to have BIML Studio ($$$) installed.