dbTalk Databases Forums  

Importing Data from Excel - Rounding Problem

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


Discuss Importing Data from Excel - Rounding Problem in the microsoft.public.sqlserver.dts forum.



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

Default Importing Data from Excel - Rounding Problem - 12-06-2005 , 09:28 PM






Hi,

I have to import data from a Excel sheet into a table. The Excel format is
"Generic' and the values can be numeric or alphanumeric. I get a mixed result
for values like i.e. for 1.1, 1.2 ,21.1, 21.1 (these are only exsamples) I
get 1.100000000001, 1.2, 21.1000000000, 21.1999999999 etc. My destination
column has to be char or varchar, size is set to 10. Why is SQL server
reformatting the number format and even changing the value (i.e. from 21.2 to
21.199999999999)? is there a way to fix this? The problem is, that the value
is a ID code which could contain characters in the future.

Any ideas? Thank you

Cheers

Peter

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.