Exercise: Export X Factor Series Data to SQL Server Table

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

The answer to the exercise will be included and explained if you attend the Wise Owl course listed below!

Category ==> SSIS Integration Services  (18 exercises)
Topic ==> Data flow tasks  (2 exercises)
Level ==> Average difficulty
Course ==> Integration Services
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

In SQL Server Management Studio, open and run the script called Create table for series.sql in the above folder:

Table of series

You should now have a skeleton table of series, ready to be filled in with data.

 

Create a new package called Serious series, and within this create two control flow tasks:

Control flow tasks

The first task should execute the SQL statement TRUNCATE TABLE tblSeries for the X Factor OLEDB connection, while the second one should be a data flow task which we'll configure in a moment. Ignore the yellow triangle!

 

Now configure the data flow task so that it:

  • Takes data from the Excel workbook in the above folder (you'll need to create an Excel connection manager for this); and
  • Exports it to the tblSeries table in the X_Factor database (using the existing OLEDB connection).

Run your package twice.  You should get the following table of data:

Table of X Factor series

Each time you run the package you get rid of old data in the table before adding new rows.

Close this package down.

This page has 0 threads Add post