Download Sample Ssis Package
Posted : admin On 4/28/2019I would like to re-search SSIS packages to load data from AdventureWorks. If you downloaded samples while installing SQL Server, you can find the package.
-->What Is Ssis Package
- Download a sample SQL Server Integration Services (SSIS) package that performs a delta sync to update Project Web App (PWA) data for Project Online reporting.
- Example using SSIS of building a framework to stage data using ETL into a data warehouse. CLICK ON THIS LINK TO DOWNLOAD THE SAMPLE APPLICATION. When packages execute they first check this table to get the latest.
In this lesson, you create a simple ETL package that extracts data from a single flat file source, transforms the data using two lookup transformations, and writes the transformed data to a copy of the FactCurrencyRate fact table in the AdventureWorksDW2012 sample database. As part of this lesson, you learn how to create new packages, add and configure data source and destination connections, and work with new control flow and data flow components.
Before creating a package, you need to understand the formatting used in both the source data and the destination. Then, you be ready to define the transformations necessary to map the source data to the destination.
Prerequisites
This tutorial relies on Microsoft SQL Server Data Tools, a set of example packages, and a sample database.
To install the SQL Server Data Tools, see Download SQL Server Data Tools.
To download all of the lesson packages for this tutorial:
Navigate to Integration Services tutorial files.
Select the DOWNLOAD button.
Select the Creating a Simple ETL Package.zip file, then select Next.
After the file downloads, unzip its contents to a local directory.
To install and deploy the AdventureWorksDW2012 sample database, see Install and configure AdventureWorks sample database - SQL.
Look at the source data
For this tutorial, the source data is a set of historical currency data in a flat file named SampleCurrencyData.txt. The source data has the following four columns: the average rate of the currency, a currency key, a date key, and the end-of-day rate.
Here is an example of the source data in the SampleCurrencyData.txt file:
When working with flat file source data, it's important to understand how the Flat File connection manager interprets the flat file data. If the flat file source is Unicode, the Flat File connection manager defines all columns as [DT_WSTR] with a default column width of 50. If the flat file source is ANSI-encoded, the columns are defined as [DT_STR] with a default column width of 50. Hps. You probably have to change these defaults to make the string column types more applicable for your data. You need to look at the data type of the destination, and then choose that type within the Flat File connection manager.
Look at the destination data
The destination for the source data is a copy of the FactCurrencyRate fact table in AdventureWorksDW. The FactCurrencyRate fact table has four columns, and has relationships to two dimension tables, as shown in the following table.
Column Name | Data Type | Lookup Table | Lookup Column |
---|---|---|---|
AverageRate | float | None | None |
CurrencyKey | int (FK) | DimCurrency | CurrencyKey (PK) |
DateKey | int (FK) | DimDate | DateKey (PK) |
EndOfDayRate | float | None | None |
Map the source data to the destination
Ssis Package Configuration
Our analysis of the source and destination data formats indicates that lookups are necessary for the CurrencyKey and DateKey values. The transformations that perform these lookups get those values by using the alternate keys from the DimCurrency and DimDate dimension tables.
flat file Column | Table Name | Column Name | Data Type |
---|---|---|---|
0 | FactCurrencyRate | AverageRate | float |
1 | DimCurrency | CurrencyAlternateKey | nchar (3) |
2 | DimDate | FullDateAlternateKey | date |
3 | FactCurrencyRate | EndOfDayRate | float |
Ssis Tutorial
Lesson tasks
This lesson contains the following tasks: