dbTalk Databases Forums  

Data Overflow

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


Discuss Data Overflow in the microsoft.public.sqlserver.dts forum.



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

Default Data Overflow - 12-17-2003 , 09:04 AM






I keep getting the error
The number of failing rows exceeds the maximum specified
Insert error, column 53('DateX', DB_TYPE_DBTIMESTAMP),
status 6: Data overflow. Invalid character value for cast
specification.

I have the following code in my VB script to capture
invalid dates but it's not working:

if isdate(DTSSource("DateX")) then
DTSDestination("DateX") = DTSSource("DateX")
elseif not isnull(DTSSource("DateX")) then
DTSDestination("DateX") = FormatDateTime("01/01/1960")
end if


Thanks in advance help.

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

Default Re: Data Overflow - 12-18-2003 , 02:33 AM






SQL Server is not interpreting the date correctly. Try using this variation

Formatting Character Data into Datetime fields
(http://www.sqldts.com/default.aspx?249)

--

----------------------------
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org



"Cathy Emmons" <hseutility (AT) aol (DOT) com> wrote

Quote:
I keep getting the error
The number of failing rows exceeds the maximum specified
Insert error, column 53('DateX', DB_TYPE_DBTIMESTAMP),
status 6: Data overflow. Invalid character value for cast
specification.

I have the following code in my VB script to capture
invalid dates but it's not working:

if isdate(DTSSource("DateX")) then
DTSDestination("DateX") = DTSSource("DateX")
elseif not isnull(DTSSource("DateX")) then
DTSDestination("DateX") = FormatDateTime("01/01/1960")
end if


Thanks in advance help.



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.