Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 [convert data] I cant convert string to float

Author  Topic 

Roman168
Starting Member

2 Posts

Posted - 2011-05-23 : 04:23:40
Hey, i have issue thats driving me crazy. I have data in txt field

"card_id";"number";"type";"issued"
1005;928.5;"classic";931107 00:00:00
104;58.8;"classic";940119 00:00:00
747;491.5;"classic";940205 00:00:00
70;43.9;"classic";940208 00:00:00
577;368.7;"classic";940215 00:00:00
377;242.9;"classic";940303 00:00:00
721;468.0;"junior";940405 00:00:00
437;276.2;"classic";940601 00:00:00

i am pasting it so you can see that there is no white characters spaces etc.I do import using flat file source in SSIS and field "number" according to sql ssis cannot be converted to float or double. I tried derived column but there go with exception An error occurred while attempting to perform a type cast or i used Data Convertion but "The value could not be converted because of a potential loss of data. "(with any types of real numbers) i try anything i could find but now i giving up. i would appreciate your help.

Roman168
Starting Member

2 Posts

Posted - 2011-05-23 : 05:34:18
Ok. for the descendans i found the soultion . Switch dots to comas
Go to Top of Page
   

- Advertisement -