469,148 Members | 1,390 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,148 developers. It's quick & easy.

how to conver number to string

how to convert number to string in sqlserver
eg:- 10 -> ten display

*** Sent via Developersdex http://www.developersdex.com ***
Jun 15 '06 #1
1 1718
oviam packirisamy (ov***@sify.com) writes:
how to convert number to string in sqlserver
eg:- 10 -> ten display


SELECT CASE number
WHEN 1 THEN 'one'
WHEN 2 THEN 'two'
...
END as display

In short, there is nothing built in.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Jun 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Boni | last post: by
8 posts views Thread by vunet.us | last post: by
1 post views Thread by Discover | last post: by
1 post views Thread by intimate2ramya | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.