SQL Service Integration Services
SQL Service Integration Services
RECAP
Last time we loaded data from .csv files into our Northwind DW
Operational Database
Reports
Data
Warehouse
Other sources
Excel workbooks
SSIS SSAS SSRS
SOME PREPARATION FIRST
In each of our DimProduct & DimCustomer tables, we need a new column to
store the original primary key from the transactional database.
• This is so we can “lookup” existing data when loading data into our warehouse
• Note we do not need one for our DimTime table as it never had primary key to
begin with from the transactional database (the columns from DimTime are all
derived values)
[DimProduct]: [DimCustomer]:
LOADING DATA INTO DATA WAREHOUSE
Load into
FactSales
CONTROL FLOW
The
ProductAlternateKey
(the primary key from
the operational
database) is saved to
lookup later.
2. LOAD [DIMCUSTOMER]
Try it!
When the dimension tables are loaded into the DW, new primary keys (the primary
key specific to the DW, not the AlternateKeys) were created which can then be
referenced from the fact table.
1. In the “Load into FactSales”
dataflow, create a OLE DB Source:
4. LOAD [FACTSALES]
2. Edit the OLE DB Source. Choose Northwind connection
manager and the following SQL Command:
Try it!