dbTalk Databases Forums  

DTS error importing from Access 2k

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


Discuss DTS error importing from Access 2k in the microsoft.public.sqlserver.dts forum.



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

Default DTS error importing from Access 2k - 04-09-2004 , 12:01 PM






I am trying to import data from Access 2000 to SQL2K. I am receiving the following error

Error at destination Row number 387. Errors encountered so far in this task: 1
Insert error, column 12 ('Birthdate', DBTYPE_DBTIMESTAMP), status 6: Data overflow
Invalid character value for cast specification

This column is going from Access Date/Time to SQL2K smalldatetime.

I have checked the data in the field and it was fine, not out of range. I have tried deleting the row 386 and 387 and I still get the same error, even though the data now in row 387 has changed. I also tried changing the data format on my regional settings and got the same error

I get the same error on other tables that include a date field

Any suggestions? Thank yo

Randy

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

Default Re: DTS error importing from Access 2k - 04-09-2004 , 02:12 PM






Try taking the date from Access and enter it directly into SQL Server. Does
it work? The error suggests you have either too small or too large a date
coming in or something like dd/mm is mm/dd or the other way around.

--
--

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


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

Quote:
I am trying to import data from Access 2000 to SQL2K. I am receiving the
following error:

Error at destination Row number 387. Errors encountered so far in this
task: 1.
Insert error, column 12 ('Birthdate', DBTYPE_DBTIMESTAMP), status 6: Data
overflow.
Invalid character value for cast specification.

This column is going from Access Date/Time to SQL2K smalldatetime.

I have checked the data in the field and it was fine, not out of range. I
have tried deleting the row 386 and 387 and I still get the same error, even
though the data now in row 387 has changed. I also tried changing the data
format on my regional settings and got the same error.
Quote:
I get the same error on other tables that include a date field.

Any suggestions? Thank you

Randy



Reply With Quote
  #3  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: DTS error importing from Access 2k - 04-10-2004 , 05:47 PM



Another thing to look for is that Access supports dates back
to 1/1/100 and SQL Server supports dates back to 1/1/1900
for smalldatetime. I've seen people get burned by typos in
their Access date fields which caused these problems, i.e.
years of 203 instead of 2003.

-Sue

On Fri, 9 Apr 2004 10:01:04 -0700, "Randy"
<anonymous (AT) discussions (DOT) microsoft.com> wrote:

Quote:
I am trying to import data from Access 2000 to SQL2K. I am receiving the following error:

Error at destination Row number 387. Errors encountered so far in this task: 1.
Insert error, column 12 ('Birthdate', DBTYPE_DBTIMESTAMP), status 6: Data overflow.
Invalid character value for cast specification.

This column is going from Access Date/Time to SQL2K smalldatetime.

I have checked the data in the field and it was fine, not out of range. I have tried deleting the row 386 and 387 and I still get the same error, even though the data now in row 387 has changed. I also tried changing the data format on my regional settings and got the same error.

I get the same error on other tables that include a date field.

Any suggestions? Thank you

Randy


Reply With Quote
  #4  
Old   
Randy
 
Posts: n/a

Default Re: DTS error importing from Access 2k - 04-12-2004 , 09:51 AM



Thank you. I sorted the birthdate column and found dates as old as the year 195. They were not close to the row in the error message but they were in there none the less

Thanks again

Randy Jones

Reply With Quote
  #5  
Old   
Randy
 
Posts: n/a

Default Re: DTS error importing from Access 2k - 04-12-2004 , 09:51 AM



Thank you. I sorted the birthdate column and found dates as old as the year 195. They were not close to the row in the error message but they were in there none the less

Thanks again

Randy Jone

----- Sue Hoegemeier wrote: ----

Another thing to look for is that Access supports dates bac
to 1/1/100 and SQL Server supports dates back to 1/1/190
for smalldatetime. I've seen people get burned by typos i
their Access date fields which caused these problems, i.e
years of 203 instead of 2003

-Su

On Fri, 9 Apr 2004 10:01:04 -0700, "Randy
<anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am trying to import data from Access 2000 to SQL2K. I am receiving the following error
Error at destination Row number 387. Errors encountered so far in this task: 1
Insert error, column 12 ('Birthdate', DBTYPE_DBTIMESTAMP), status 6: Data overflow
Invalid character value for cast specification
This column is going from Access Date/Time to SQL2K smalldatetime.
I have checked the data in the field and it was fine, not out of range. I have tried deleting the row 386 and 387 and I still get the same error, even though the data now in row 387 has changed. I also tried changing the data format on my regional settings and got the same error
I get the same error on other tables that include a date field
Any suggestions? Thank yo
Rand



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.