Jamie Thomson
TomWhite_jr wrote: |
|
Hi,
I'm using data flow as flat file source -> derived column ->Data Conversion-> oledb destination
I have a fifty thousand record in a delimited file. while processing i got error in 45000th row. In database only 40000 records are there(why is there no all 45000 records). Is there any way to roll back all the 40000 records.
| |
Tom,
The SSIS dataflow processes data in buffers. A buffer contains a fixed set of rows and usually is about 10000 rows (usually slightly less than that actually - for reasons I won't go into right now).
By default, the OLE DB Destination will commit rows a buffer at a time so if one row fails, all rows in that buffer fail. You can change this behaviour by setting "Rows Per Batch"=1. This will mean each row will get committed a row at a time so at the point of failure you will get 44999 rows in the destination. It will be slo-o-o-o-o-w though!
-Jamie