dbTalk Databases Forums  

How to load a value with , into a real type

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


Discuss How to load a value with , into a real type in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
karenmiddleol@yahoo.com
 
Posts: n/a

Default How to load a value with , into a real type - 10-19-2005 , 09:02 AM






I have a tab delimited text file and I am trying to load that into a
table with a real data type.

Appears when it finds a value like 22,579.59 the load fails that
cannot convert to real.

Thanks
Karen


Reply With Quote
  #2  
Old   
SQL
 
Posts: n/a

Default RE: How to load a value with , into a real type - 10-19-2005 , 10:16 AM






do a replace
replace(value,',','')

http://sqlservercode.blogspot.com/

"karenmiddleol (AT) yahoo (DOT) com" wrote:

Quote:
I have a tab delimited text file and I am trying to load that into a
table with a real data type.

Appears when it finds a value like 22,579.59 the load fails that
cannot convert to real.

Thanks
Karen



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.