471,595 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,595 software developers and data experts.

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 1784
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
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.