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 2000 Forums
 SQL Server Development (2000)
 create Datatype

Author  Topic 

Tharindu
Starting Member

5 Posts

Posted - 2006-05-18 : 07:27:08
I wont 2 create Datatype in currency but data have 2 dispay

now after
1 ---->1.00
.25 ---->0.25
1000 ---->1000.00
1.1 ---->1.10

Tharindu

Tharindu

Kristen
Test

22859 Posts

Posted - 2006-05-18 : 07:40:13
SQL Server will only store the data for you, you should use handle the Presentation Layer in the application that delivers the data to the user.

Having said that:

CONVERT(varchar(20), MyMoneyColumn, 1)

will give you 2 decimal places (and also commas between the thousands)

Kristen
Go to Top of Page
   

- Advertisement -