Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Processing header and detail rows flat file

$
0
0

Afternoon,

I was wondering if anyone could help me with some really simple examples of how to process a file with headers and lines, I have seen some examples but as I'm really new to all this they don't make much sense.

If we take a example file that looks something like this:-

"H", "1", "SomeData", "26/03/2013"

"L", "10001239", "154", "23/03/2013", "19/03/2013"

"L", "10001240", "169", "23/03/2013", "19/03/2013"

"H",  "2", "SomeMoreData", "27/03/2013"

How would I go about processing this file using SSIS?  On the header line the second value is the ID field and needs to be included when the lines information is inserted into the database.  The header lines need to go to one database table lets call it TBL_Headers and the lines need to go to TBL_Lines. 

Any help, advice, very simple Janet and John examples would be great.

Thank you in Advance

Andy


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>