Tech-Love

Monday, May 29, 2006

SSIS Package Restartability:

Introduction :

Package Restartability is nothing but starting a package from a point where it has failed.

Let’s assume that in company X, a DBA has been assigned to perform certain DB tasks, say three tasks namely A, B and C. These tasks have to run in a sequential order. DBA starts the task in night and leaves the company thinking that work will be completed the next day, if all is well fine. Assume that task B failed for some reason and next day the DBA has to start all the work again right from scratch. In case if task A is very costly in terms of resource and time required, DBA will be in trouble.

SSIS comes handy for these kinds of situations. Using SSIS checkpoints DBA can start running the task B and then task C instead of running task A again.


How to achieve this in SSIS:

We have to write the state information of each tasks in a file after each tasks complete. This is very simple in SSIS. We have to just set four properties. Three in package properties and one in task properties.


Following table will explain what are these properties and how to use it:

Package Properties

CheckPointFileName - File path to store the state information of the tasks e.g.: D:\name.chk
CheckPointUsage - User can select one out of three values available. These values tell us how to use checkpointfile in the package execution

1) Never - Tells the package not to use a checkpointfile

2) If exists - If the checkpointfile exists, it will be used and the package will be restarted according to the information stored.

3) Always - Always use a checkpointfile. If you have not specified any value in checkpointfilename property, package will fail.

SaveCheckPoints - Boolean value to indicate whether checkpoints are to be written.

Task Properties:

FailPackageonFailure - This must be set for each task that we want to be the point for a checkpoint and restart.

Note:

Checkpoints can be used only on control flow and not on dataflow.

Summary:

In this article we learnt about restarting the SSIS package from the point it has failed using checkpoints. We need to just remember the four important properties we have to set for achieving the same. For containers and transactions, we have to adjust or set little more properties. I will try to cover this in next article.

1 Comments:

At 5:36 AM , Anonymous Anonymous said...

Howdy,

I am regular visitor of this website[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url]vijaykishan-manju.blogspot.com is filled with quality info. Do you pay attention towards your health?. Here is a fact for you. Recent Research displays that about 50% of all U.S. grownups are either obese or overweight[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] So if you're one of these individuals, you're not alone. Infact many among us need to lose 10 to 20 lbs once in a while to get sexy and perfect six pack abs. Now the question is how you are planning to have quick weight loss? [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss[/url] is not like piece of cake. If you improve some of your daily diet habbits then, its like piece of cake to quickly lose weight.

About me: I am webmaster of [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]Quick weight loss tips[/url]. I am also health trainer who can help you lose weight quickly. If you do not want to go under difficult training program than you may also try [url=http://www.weightrapidloss.com/acai-berry-for-quick-weight-loss]Acai Berry[/url] or [url=http://www.weightrapidloss.com/colon-cleanse-for-weight-loss]Colon Cleansing[/url] for effortless weight loss.

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home