SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 Loading data to database table
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

navkms
Starting Member

India
2 Posts

Posted - 02/07/2013 :  08:28:36  Show Profile  Reply with Quote
Hi,
I have a situation, I have 100 rows to be loaded to table, but problem is 90th record is bad record, where package fails!!! now when i restart package it should load only 10 records, should not start from beginning because when we have million records it'll be a time consuming!!!
Thanks in Advance!!!

Regards
SSIS learner

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 02/07/2013 :  09:33:39  Show Profile  Reply with Quote
you can make use of checkpoints in SSIS for restarting from failure point.

For this set the options as below

1. CheckpointFileName should point to filename
2. CheckpointUsage should be set to Always
3. SaveCheckpoints should be set to True

then package will restart from failure point.


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

navkms
Starting Member

India
2 Posts

Posted - 02/08/2013 :  02:57:29  Show Profile  Reply with Quote
@visakh16 : yes i know that, but if it fails inside dataflow task, it restarts from first step of dataflow task, wont start loading from which record it stopped. Is there any way by which i can load only 10 records at which package failed because of bad record
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 02/08/2013 :  03:27:03  Show Profile  Reply with Quote
In that case you need to add an onerror flow to capture error rows and process them separately so that it doesnt get failed in b/w

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000