DTS Character Date into DateTime field
Posted on 2003-03-07
I am trying to import data into an SQL 2000 table that includes dates using DTS. The import flat (text) file is fixed field delimited and fairly straight forward. I attempt to import a 10 character date (MM/DD/YYYY) from a fixed position of the text file into a column of a SQL2K table defined as smalldatetime (or datetime, neither works). When setting up the transformation in DTS and trying to map the column containing the date from the text file to the column in the SQL2K table I get the following message:
An error occurred when you tried to submit changes to this transform. Please refer to the following error message and make sure that you have edited other properties of this transform by pressing "Properties" button under the "General" tab.
Error Source : Microsoft Data Transformation Services (DTS) Data Pump.
Error Description: DTSTransformCopy: Schema validation failed; see Extended Error information.
TransformCopy '(no name)' validation error: Source column too narrow to contain a valid value of the destination column's datatype for column pair 1 (source column 'Col013' (DBTYPE_STR), destination column 'ppp_date' (DBTYPE_DBTIMESTAMP).
My client is running SQL 2000 - SP2 (I believe). Any thoughts on how to get this done without creating a temp column of CHAR(10) and updating the DateTime column with the temp column value ???