码迷,mamicode.com
首页 > 其他好文 > 详细

SSIS ->> Package Restartability Fullfilled By Checkoints

时间:2015-08-18 15:31:06      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:

Checkpoints are the foundation for restarting packages in SSIS, and they work by writing state information to a ?le after each task completes. This ?le can then be used to determine which tasks have run and which have failed. 

To ensure that the checkpoint ?le is created correctly, you must set 3 package properties and one task property:

CheckpointFilename: This is the ? lename of the checkpoint ? le

CheckpointUsage: 3 options

  • Never: The package will not use a checkpoint ? le and therefore will never restart.
  • If Exists: If a checkpoint ? le exists in the place you speci? ed for the CheckpointFilename property, then it will be used, and the package will restart according to the checkpoints written.
  • Always: The package will always use a checkpoint ? le to restart; if one does not exist, the package will fail

SaveCheckpoints: This is a simple Boolean to indicate whether checkpoints are to be written. 

The one property you have to set on the task is FailPackageOnFailure. This must be set for each task or container that you want to be the point for a checkpoint and restart. If you do not set this property to true and the task fails, no ? le will be written, and the next time you invoke the package, it will start from the beginning again. 

Checkpoints occur only at the Control Flow

If you want a checkpoint ? le to be written, then make sure that the restart point has FailPackageOnFailure set to true.

SSIS ->> Package Restartability Fullfilled By Checkoints

标签:

原文地址:http://www.cnblogs.com/jenrrychen/p/4739219.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!