473,387 Members | 1,388 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 1851
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

21
by: Gavin | last post by:
Hi, I'm a newbie to programming of any kind. I have posted this to other groups in a hope to get a response from anyone. Can any one tell me how to make my VB program read the Bios serial number...
1
by: khipra | last post by:
Hi! I'm try to convert a String to Datetime, but convert only works for some format: my value is: "20040719 16:00" This is the String that I want to convert to Datetime. I testing with some...
3
by: Boni | last post by:
Dear all, is it possible to convert string "Blue" into system.drawing.color.blue. Thanks a lot, Boni
2
by: Franky | last post by:
This should be easy to find but I've been looking and looking at the doc and can't find it. Maybe it can't be done. In the IDE editors find/replace I want to use regular expression to change the...
8
by: vunet.us | last post by:
How can I convert today's time (9:30:00) to seconds (34200) without using calculations like (9*3600)+(30*60)+0? Is there an easy function? Thank you
1
by: Discover | last post by:
Hi there i'm a new developer (student) and i have algorithim coded by java and i want any help for converting to c# .....please public class AssignmentProblem { double cost; //COST...
1
by: palang | last post by:
how to conver centimeter to pixel in c#.net
0
by: phanimadhav | last post by:
please help me.Actually i am new one of this ASP.NET.i don't know how to conver the file .XML to .CSV format.please help me it's urgent.Actually i can transform the sqlserver database values to...
1
by: intimate2ramya | last post by:
hi i have a string like dd.MM.yyy. i want to convert to date like dd-MM-yyyy. if u have any suggestion pls reply me
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.