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
 General SQL Server Forums
 New to SQL Server Programming
 smallmoney with 2 digits

Author  Topic 

saltzmanjoelh
Starting Member

10 Posts

Posted - 2008-01-02 : 04:06:02
I have a table for products and the price field is smallmoney data type. When I view the data stored it shows it with millionths. How do I get it to store only hundredths?

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2008-01-02 : 04:09:09
Use Numeric or Decimal data type instead.

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-01-02 : 04:35:44
or round it to two decimal places when retreiving data

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -