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
 Translate Numbers to Words

Author  Topic 

taj
Starting Member

39 Posts

Posted - 2013-08-30 : 01:05:12
Hi All,

In the below query i need to display the amount in words also. How to do that in sql server 2008 R2?

SELECT ROUND(SUM(BM.CONCESSION_AMOUNT_M),2)AS[TOTAL_CONCESSION_GIVEN] FROM BILL_MASTER BM

Thanks You,

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-08-30 : 01:06:24
you need to write a UDF for that.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

taj
Starting Member

39 Posts

Posted - 2013-08-30 : 01:12:25
quote:
Originally posted by visakh16

you need to write a UDF for that.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs



can you give me some links to refer and create the UDF for same.
Go to Top of Page

bandi
Master Smack Fu Yak Hacker

2242 Posts

Posted - 2013-08-30 : 02:52:22
Refer these links for samples
http://www.sqlservercentral.com/Forums/Topic794134-149-1.aspx
http://dotnet-assembly.blogspot.in/2012/08/sql-server-query-to-convert-numbers.html

--
Chandu
Go to Top of Page
   

- Advertisement -