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

Parsing a text file

$
0
0

I have a flat file with parent child records parent record is identified by 01 and child records from 02 to 16. here is the layout.

010101ABC0001230412192L 01.... Parent1
02NAME...ADDRESS....01256389201419... CHILD1
03NAME...ADDRESS....01256389201419... CHILD2
 010101ABC0001230412192L 01.... Parent2
02NAME...ADDRESS....01256389201419... CHILD1
03NAME...ADDRESS....01256389201419... CHILD2
04NAME...ADDRESS....01256389201419... CHILD3

Now this is what i want for ever record.

010101ABC0001230412192L 01.... 02NAME...ADDRESS....01256389201419...03NAME...ADDRESS....01256389201419...i used cursor before but this time no of child records are different.

   

Viewing all articles
Browse latest Browse all 24688

Trending Articles



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