SQL Server Integration Services (SSIS) – Part 16 – Sequential Container Task in SSIS

Karthikanbarasan
Posted by in Sql Server category on for Intermediate level | Points: 250 | Views : 16962 red flag
Rating: 5 out of 5  
 1 vote(s)

This is part 16 of the series of article on SSIS where I shall show how to work with sequential Container Task in SSIS.

Introduction


In this article we are going to see on how to use a Sequential Task container. This container is used in areas where the process needs to follow certain tasks sequentially. Sequential Task groups the tasks into multiple control flows and executes the process sequentially. We can use this task widely based on our requirement like, disabling a sequence when it should not process, use it when managing multiple tasks at a same time in one location. We can easily disable a set of tasks under sequential task by disabling the sequential task alone which is straight forward. If there are many tasks in our package we can group them based on their sequence and used to collapse and expand them and also to enable and disable them easily.

To follow my series of articles on SSIS packages refer to the below URL’s

SSIS Article Series Part 1 to 15

Steps


Follow steps 1 to 3 on my first article to open the BIDS project and select the right project to work on integration services project. Once the project is created, we will see on how to use Sequential Container Task in SSIS packaging.

Once we are into the BIDS, now we will start with drag and dropping a sequential container task on to the designer view as shown in the screen below


Now add a variable as shown in the below screen.


Now we need to create a scrip task by drag and dropping it and double click on it will open the below screen. Here we need to add the variable to the Readonlyvariable as shown below


Now click on the Design Script button, which will open the below window where we need to write script as shown below in the main method.


Now add a sequential container flow for each day of week as shown in the below screen and connect to the script task


Now click on the green arrow of each task and do the same as shown in the below screen shot for different days


After you have given the expressions for each task your screen look like below


Now right click and execute the package. Or Press F5 directly.



Conclusion

So in this article we have seen on how to use a Sequential container task and how to configure and use the same appropriately.

Page copy protected against web site content infringement by Copyscape

About the Author

Karthikanbarasan
Full Name: Karthikeyan Anbarasan
Member Level: Silver
Member Status: Member,Moderator,Microsoft_MVP,MVP
Member Since: 1/2/2011 3:00:14 AM
Country: India
Thanks Karthik www.f5Debug.net
www.f5Debug.net
www.f5Debug.net Around 5 years of experience in Microsoft technologies like ASP.Net, VB.Net, C#.net, SQL server, Biztalk Server, WCF, WPF, SSIS, SSRS, SSAS, AJAX and working as Senior Analyst in a US based MNC.

Login to vote for this post.

Comments or Responses

Login to post response

Comment using Facebook(Author doesn't get notification)