I have a txt file that is a fixed width with no delimiter and am trying to dump into a SQL table. The problem is, as the subject suggests, the date field. Here are a couple of lines of the txt file and the field lengths are:
6, 8, 6, 4, 4, 20
4300312/16/05 036032.3 UPSCUPS COLLECT ******
4300412/16/05 0383434.1UPSCUPS COLLECT ******
4300512/16/05 0335817.0UPSCUPS COLLECT ******
How do I get the second field (12/16/05) inserted as a date? Can I use a function like CDATE or CONVERT? and if so, where?
Sorry for the NOOB question.
6, 8, 6, 4, 4, 20
4300312/16/05 036032.3 UPSCUPS COLLECT ******
4300412/16/05 0383434.1UPSCUPS COLLECT ******
4300512/16/05 0335817.0UPSCUPS COLLECT ******
How do I get the second field (12/16/05) inserted as a date? Can I use a function like CDATE or CONVERT? and if so, where?
Sorry for the NOOB question.