Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to convert numeric to alphabets in mssql
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

252 Posts

Posted - 11/26/2012 :  04:42:10  Show Profile  Reply with Quote
Hello all,

i am facing small issue in my table i have values and i need to convert while i showing in grid for example i have value 1 and 2 and i need to convert them into ONE AND TWO how to convert is not about cast and convert????


Flowing Fount of Yak Knowledge

2242 Posts

Posted - 11/26/2012 :  05:36:22  Show Profile  Reply with Quote
I think there is no direct in-built function for transforming numbers to words...

Anyway check this link to get UDF(User Defined Function)

Go to Top of Page

Posting Yak Master

220 Posts

Posted - 11/27/2012 :  13:22:36  Show Profile  Reply with Quote
If you are just looking to transform the data why not just use a case statement?

SELECT ID, Category =
CASE Values
WHEN 'Value 1' THEN 'ONE'
WHEN 'Value 2' THEN 'TWO'
ELSE 'Not found'

FROM Sometable
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000