Book Image

Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide

By : Abolfazl Radgoudarzi, Reza Rad
Book Image

Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide

By: Abolfazl Radgoudarzi, Reza Rad

Overview of this book

Table of Contents (19 chapters)
Microsoft SQL Server 2014 Business Intelligence Development Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – working with Control Flow tasks


In this example, we will start working with the Control Flow task, use File System Task to move a file, and also use Execute SQL Task to interact with a database and write a log entry. We will also work with Precedence Constraint to define the priority and order of execution of items in the Control Flow window. Perform the following steps to explore the options in the Control Flow window:

  1. Create a package-level variable in the Variables pane, name it FilePath with a string data type, and set its path to the Customers_1.csv file.

  2. Drag-and-drop a File System Task from the SSIS toolbox into the Control Flow tab.

  3. Double-click on the File System Task in the Package Designer; the File System Task Editor will be opened.

  4. Set the Operation option as Move File, set IsSourcePathVariable to true, and choose User::FilePath as SourceVariable:

  5. Keep IsDestinationPathVariable as False and create a destination connection to an archive folder (a folder that we use...