Hi everyone,
I have an import function that i am currently doing programatically, parsing through a text file massaging the data and putting it into 2 tables .. lets call them summary and detail...
here is a look at a simplified view of the text file
<recordID>,<SummaryID>,<SummaryData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<SummaryID>,<SummaryData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
.
.
.
the <recordID> field at the begining of each line identifies it to the parsing program as a summary or detail record.
ok.. the problem is that reading through all these records (up to 5 meg) takes a long time. I know that DTS is faster but i don't think that i can do this like i want to with dts .. because dts maps the entire input file to a specific schema at the front end.. and my textfile contains different types of records... Is there a way to do this faster?
thanks for the help.
Mark
I have an import function that i am currently doing programatically, parsing through a text file massaging the data and putting it into 2 tables .. lets call them summary and detail...
here is a look at a simplified view of the text file
<recordID>,<SummaryID>,<SummaryData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<SummaryID>,<SummaryData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
<recordID>,<summaryID>,<DetailID>,<DetailData>
.
.
.
the <recordID> field at the begining of each line identifies it to the parsing program as a summary or detail record.
ok.. the problem is that reading through all these records (up to 5 meg) takes a long time. I know that DTS is faster but i don't think that i can do this like i want to with dts .. because dts maps the entire input file to a specific schema at the front end.. and my textfile contains different types of records... Is there a way to do this faster?
thanks for the help.
Mark