You are here: Re: Update One Based on ANother Table « MsSQL Server « IT news, forums, messages
Re: Update One Based on ANother Table

Posted by Mike on 10/13/05 18:50

Ok I have another problem with some of the data. I did not notice this but
some of the columns where nvarchar data types and the math is not working on
them. I tried to change the data type to decimal but Enterprise Manager is
giving me and error saying it can not convert the data type.

The table I am working was imported and the data types were nvarchar but I
managed to change them to varchar data types but I need them to be numeric
or decimal data types so that the math will work.

Can any one tell how to change these?

Thanks!

"Mike" <noway@forgetit.com> wrote in message
news:5Mt3f.9$Ej6.4@newssvr17.news.prodigy.com...
> Thanks!! That did the trick!!
>
> "David Portas" <REMOVE_BEFORE_REPLYING_dportas@acm.org> wrote in message
> news:1129210392.828258.210620@g44g2000cwa.googlegroups.com...
>> INSERT INTO Cost_Percent (svccode, price, dwages, dmatls)
>> SELECT svccode, price, dwages/price, dmatls
>> FROM xfile
>> WHERE ... ?
>>
>> --
>> David Portas
>> SQL Server MVP
>> --
>>
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация