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
 Transact-SQL (2005)
 money format

Author  Topic 

Hrcko
Starting Member

1 Post

Posted - 2008-01-29 : 07:00:52
I would like to get a field as 1.000,00.
Is that possible?
It must be universal, without regional settings.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-01-29 : 07:02:14
See CONVERT function in Books Online.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-01-29 : 07:04:40
[code]DECLARE @Yak MONEY

SET @Yak = ABS(CHECKSUM(NEWID())) % 10000000

SELECT CONVERT(VARCHAR(20), @Yak, 1)[/code]


E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-01-29 : 08:16:31
quote:
Originally posted by Hrcko

I would like to get a field as 1.000,00.
Is that possible?
It must be universal, without regional settings.


Where do you want to show formatted money?

Madhivanan

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

- Advertisement -