Bulk Insert vs. Data Flow Task (different row results using flat file source)
I'm importing a large csv file two different ways - one with Bulk Import Task and the other way with the Data Flow Task (flat file source -> OLE DB destination).With the Bulk Import Task I'm putting all the csv rows in one column. With the Data Flow Task I'm mapping each csv value to it's own column in the SQL table. I used two different flat file sources and got the following:Flat file 1: Bulk Import Task = 12,649,499 rows; Data Flow Task = 4,215,817 rowsFlat file 2: Bulk Import Task = 3,403,254 rows; Data Flow Task = 1,134,359 rowsAnyone have any guess as to why this is happening?
November 2nd, 2006 6:13pm

It seems that there's a factor of 3 in between the two components, which could mean that Flat File Connection Manager is interpereting 3 rows as 1. This might be related with the row delimiter in the Flat File connection manager. Can you try to use preview in the Flat File connection manager, and see if rows show up correctly?
Free Windows Admin Tool Kit Click here and download it now
November 3rd, 2006 3:30am

Yeah, thanks for the reply. I've checked the preview and it looks fine. I've also tracked down some of the skipped rows and there's nothing signficant about them. They look exactly the same as all the others. Perhaps there is a hidden character or something? Is this possible?
November 5th, 2006 5:54am

Can you compare the rows imported by FlatFile with the rows imported by Bulk insert task and see if there is any difference between them? Thanks,Ovidiu Burlacu
Free Windows Admin Tool Kit Click here and download it now
November 6th, 2006 10:13pm

yes, i can do that and the resolution is that they look exactly the same. ug. there really is no indication i can see to why a rows get dropped. they are not the same type, they don't have rows before them or after them with any significant difference. it's really very puzzling.
November 6th, 2006 11:48pm

Can you put a data viewer in your pipeline and see what rows pass through at execution time? Thanks,Ovidiu Burlacu
Free Windows Admin Tool Kit Click here and download it now
November 7th, 2006 8:38pm

Data flow taks has a property to eliminate duplicatesunder fast table/view load option. This could eliminate duplicates and reduce the record counts.
November 26th, 2007 11:32pm

IHave you specified an error output? Is it possible that errors are occurring and they're being ignored?
Free Windows Admin Tool Kit Click here and download it now
November 27th, 2007 12:33am

one soultion with this how i did, bulk insert into sql destination which pull all rows to one columns and then script task to split coulmn with right delimiter and then redirect those columns to right destination.
April 26th, 2011 1:42pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics