dbTalk Databases Forums  

date transformation fails

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss date transformation fails in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ChrisR
 
Posts: n/a

Default date transformation fails - 07-22-2004 , 06:29 PM






sql2k sp3

Ive got a package that transforms a datetime in one table
into a char(10) in the other. Im using the Date Time
String Function to to this. I feed it in a date and time
the way it's stored in a datetime column, it comes out
like 07/22/2004. This is all well and good. But once I
build an identicle package to be used by Replication with
the same transformation, the Distribution Agent blows up
with:

The number of failing rows exceeds the maximum specified.
(Source: Microsoft Data Transformation Services (DTS) Data
Pump (); Error number: )
TransformDateTimeString 'DTSTransformation__2', column
pair 1 (source column 'TransDate' (DBTYPE_WSTR),
destination column 'TransDateShort' (DBTYPE_STR)): Cannot
parse input data string beginning at '2002-12-31 00:00:00'
(Source: Microsoft Data Transformation Services (DTS) Data
Pump (); Error number: )


Why does it work in one place and not the other?


TIA, Chris

P.S. Im going to cross post this in DTS and Replication
because its such a grey area.


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: date transformation fails - 07-23-2004 , 01:57 AM






Could it be Server environmental settings?

When you executed the package it was executed in the context of you. When
Replication does it then it will run on the distributor

--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"ChrisR" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
sql2k sp3

Ive got a package that transforms a datetime in one table
into a char(10) in the other. Im using the Date Time
String Function to to this. I feed it in a date and time
the way it's stored in a datetime column, it comes out
like 07/22/2004. This is all well and good. But once I
build an identicle package to be used by Replication with
the same transformation, the Distribution Agent blows up
with:

The number of failing rows exceeds the maximum specified.
(Source: Microsoft Data Transformation Services (DTS) Data
Pump (); Error number: )
TransformDateTimeString 'DTSTransformation__2', column
pair 1 (source column 'TransDate' (DBTYPE_WSTR),
destination column 'TransDateShort' (DBTYPE_STR)): Cannot
parse input data string beginning at '2002-12-31 00:00:00'
(Source: Microsoft Data Transformation Services (DTS) Data
Pump (); Error number: )


Why does it work in one place and not the other?


TIA, Chris

P.S. Im going to cross post this in DTS and Replication
because its such a grey area.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.