A project that I working on requires me to delimit a text file that looks something like
Field1|Field2|Field3|Field4
Fields 1 - 3 are delimited by "|" however field 4 contains 220 characters and is fixed width delimited. I need to parse field 4 into 30 columns.
I was thinking about first loading this into a staging table, and then using subString method to parse that field and insert that into the table... However this method proves to be slow...
Can anyone suggest a better way?
Field1|Field2|Field3|Field4
Fields 1 - 3 are delimited by "|" however field 4 contains 220 characters and is fixed width delimited. I need to parse field 4 into 30 columns.
I was thinking about first loading this into a staging table, and then using subString method to parse that field and insert that into the table... However this method proves to be slow...
Can anyone suggest a better way?