Narizz28
MIS
- Mar 8, 2001
- 161
This one has me confused.
I am using DTS to import a text file nightly in a table. I have 4 columns designed in the Table as Datetime (Col14, Col19, Col20, COl21). When the update runs, no records are brought in and all exception out with a data type mismatch error. It states that source Col14 is type string, and dest date is type datetime. All of the dates in the text file are formated dd/mm/yyyy.
When I change the column type in the table to varchar one column at a time, it succeeds. I by chance put col19 back to datetime and it still succeeds (excpet in records that have a null for the data in col19, the output file uses \N for null representation, but that's a different problem).
The really odd part is that the data in the source file for Col19 is formatted the same way as the other datetime fields.
Has anyone ever seen this behavior or have any suggestion for getting the data to import as a date? Any help is appreciated.
Source file is Pipe delimited, LF Row delimiter, no text qualifier.
I am using DTS to import a text file nightly in a table. I have 4 columns designed in the Table as Datetime (Col14, Col19, Col20, COl21). When the update runs, no records are brought in and all exception out with a data type mismatch error. It states that source Col14 is type string, and dest date is type datetime. All of the dates in the text file are formated dd/mm/yyyy.
When I change the column type in the table to varchar one column at a time, it succeeds. I by chance put col19 back to datetime and it still succeeds (excpet in records that have a null for the data in col19, the output file uses \N for null representation, but that's a different problem).
The really odd part is that the data in the source file for Col19 is formatted the same way as the other datetime fields.
Has anyone ever seen this behavior or have any suggestion for getting the data to import as a date? Any help is appreciated.
Source file is Pipe delimited, LF Row delimiter, no text qualifier.