G
Greg
I need to create an aspx page that accepts an uploaded text file from a
user and parses the file contents into various, normalized database
tables/columns. The input file is an industry standard, fixed-width
file layout. The file is 'old-school' with the first three columns
representing a segment code that identifies what fields and positions
exist on the line, so it's not just a straight-forward fixed width text
file. I have toyed with a couple of ideas, but I'm a little concerned
about scalability.
I could accept the uploaded file, save as a text file on the server and
parse through it. This seems like it would very expense in terms of
scalability.
I could read the uploaded file directly into an array and parse through
it.
I could store the file directly into the sql database and then call a
stored proc to do the parsing.
If anyone has any other methods to consider or information regarding
the performance impact of any of the above methods, I would greatly
appreciate the feedback.
user and parses the file contents into various, normalized database
tables/columns. The input file is an industry standard, fixed-width
file layout. The file is 'old-school' with the first three columns
representing a segment code that identifies what fields and positions
exist on the line, so it's not just a straight-forward fixed width text
file. I have toyed with a couple of ideas, but I'm a little concerned
about scalability.
I could accept the uploaded file, save as a text file on the server and
parse through it. This seems like it would very expense in terms of
scalability.
I could read the uploaded file directly into an array and parse through
it.
I could store the file directly into the sql database and then call a
stored proc to do the parsing.
If anyone has any other methods to consider or information regarding
the performance impact of any of the above methods, I would greatly
appreciate the feedback.