dbTalk Databases Forums  

SOS!!!can not insert the field of smalldatetime with NULL

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


Discuss SOS!!!can not insert the field of smalldatetime with NULL in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steven Wong via SQLMonster.com
 
Posts: n/a

Default SOS!!!can not insert the field of smalldatetime with NULL - 01-08-2005 , 03:38 AM






Hello everyone,
I am using DTS to transform data from foxpro.when it meets the date of NULL,it fails and says"Insert Error , column 4( 'Coloumn_name ',DBTYPE_DBTIMESTAMP), Status 6 ata overflow ".
And then i try to open the DTS Transform Data task and do a preview of the data from the 'Source' side.The Null values are treated as "1899-12-30".
After reading something ,i try to write an ActiveX scripting Task to solve this problem using the function of "IsDate()",but it fails with exceptions.
Now I don't know what to do.could anyone give me some suggestion?Anything will be appreciated!ThankX in advance!

--
Message posted via http://www.sqlmonster.com

Reply With Quote
  #2  
Old   
Ilya Margolin
 
Posts: n/a

Default Re: SOS!!!can not insert the field of smalldatetime with NULL - 01-10-2005 , 07:17 AM






Steven,

Smalldatetime date range starts with 1/1/1900 and that is why you have
overflow. Either change 1899-12-30 to 1/1/1900 or record null if column is
nullable.

Ilya

"Steven Wong via SQLMonster.com" <forum (AT) SQLMonster (DOT) com> wrote

Quote:
Hello everyone,
I am using DTS to transform data from foxpro.when it meets the date of
NULL,it fails and says"Insert Error , column 4( 'Coloumn_name
',DBTYPE_DBTIMESTAMP), Status 6 ata overflow ".
Quote:
And then i try to open the DTS Transform Data task and do a preview of
the data from the 'Source' side.The Null values are treated as "1899-12-30".
After reading something ,i try to write an ActiveX scripting Task to
solve this problem using the function of "IsDate()",but it fails with
exceptions.
Quote:
Now I don't know what to do.could anyone give me some suggestion?Anything
will be appreciated!ThankX in advance!

--
Message posted via http://www.sqlmonster.com



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.