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 2005 Forums
 SQL Server Administration (2005)
 only 2 decimal places in field of type money

Author  Topic 

manared
Starting Member

10 Posts

Posted - 2007-03-29 : 15:41:25
I have a table in SQL 2005 with a field that has a value of type 'money'. When values are added, the field has 4 decimal places. Is there a way that I can make it only have 2 decimal places right away? Thanks!!!

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-29 : 15:48:10
Change the datatype to NUMERIC(x, 2)
where x is the maximum number of digits stored, included 2 decimals.


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -