When building and deploying a cube, newly created relational tables need to be deployed to a SQL database. A package, using SSIS ExecutePackage tasks, can accomplish this.
Begin by adding a package to the project. Refer to the first 4 steps in the Creating a Package topic to create a package and rename it to BuildSchema.
To deploy the tables to SQL:
-
Find the Toolbox tool window. Drag and drop an ExecutePackage task onto the designer surface.
-
In the Package Details tool window, choose the DimCustomer tab in the Table dropdown. Additionally, for clarity, rename this task to be DimCustomer.
-
Repeat steps 1 and 2 for the following tables:
When finished, the package editor should look as follows:
-
To create a precedence constraint, drag a line from the bottom anchor of the DimCustomer ExecutePackage task to the
top anchor of the DimDate ExecutePackage task.
Start dragging from the bottom anchor of the DimCustomer task. While dragging, a blue line will follow the mouse cursor. Move the mouse cursor over the the DimCustomer task's top anchor and release.
-
Create edges so that the tasks are linked together as follows:
- Right click on the package and select Build & Run. This executes the tasks in the package, deploying the tables to the
AdventureWorksLTDataMart database.


