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
 Development Tools
 Other Development Tools
 Convert Char to number (ASP)

Author  Topic 

haibec
Yak Posting Veteran

54 Posts

Posted - 2008-01-28 : 22:14:21
Im insert into my DB a field (Varchar(50)) is : 200.000 . Now, I want this field multiplication a number will have result correct . Example : 200.000 * 2 = 400.000 (I was CDbl function but incorrect : CDbl(Field)*2=200 . Hic.hic .Please help me!

georgev
Posting Yak Master

122 Posts

Posted - 2008-02-17 : 11:15:48
Easy answer is to store numerical data in your database appropriately! Then you'll never have this problem!

I'm not going to suggest any workarounds; just-a-go-a-fix-it! :)


George
<3Engaged!
Go to Top of Page
   

- Advertisement -