I have the following sample text:123456 789012 1 Short descriptive text. 01/01/2007234567 890123 2 Short descriptive text. 01/01/2007345678 901234 3 Short descriptive text. 01/01/2007456789 012345 4 Short descriptive text. 01/01/2007567890 123456 5 Short descriptive text. 01/01/2007
I'm trying to import this file via a DTS data transform to the following table:CREATE TABLE [AR07] ( [created] [smalldatetime] NOT NULL CONSTRAINT [DF__AR07_test__creat__22AA2996] DEFAULT (getdate()), [submitter] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [provider] [char] (10) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [claims] [int] NULL , [error] [char] (26) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL , [rpt_date] [datetime] NOT NULL , CONSTRAINT [PK_AR07] PRIMARY KEY CLUSTERED ( [submitter], [provider], [error], [rpt_date] ) WITH FILLFACTOR = 90 ON [PRIMARY] ) ON [PRIMARY]GO
I'm copying each column individually, starting with source column 1 to destination column submitter. It refuses to import with the error: DTSTransformCopy: Schema validation failed; see Extended Error information.TransformCopy 'DTSTransformation__5 validation error: Source column too narrow to contain a valid value of destination column's datatype for column pair 1 (source column 'Col005' (DBTYPE_STR), destination column 'rpt_date' (DBTYPE_DBTIMESTAMP)).So I tried using a Datetime transform on the last column, and I get: The number of failing rows exceeds the maximum specified.TransformDateTimeString 'DTSTransformation__5', column pair 1 (source column 'Col005' (DBTYPE_STR), destination column 'rpt_date' (DBTYPE_DBTIMESTAMP)): Cannot parse input data string beginning at '01/01/2007'The thing is, this file worked fine a couple of weeks ago. What changed was: 1, the file is now being brought to the server via NDM instead of FTP, and 2, NDM strips trailing spaces off the end of each line. I have since had the file re-sent with the trailing spaces intact, but I still get the same errors.Any ideas?