Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to put New character line in Sql Server

The data come from two columns. Im Already tried below one but its not working.

PhoneNumber + CHAR(13) + CHAR(10) + EmailID as PhoneEmail

Help me if any one know


Thanks
bajid
Posted
Updated 22-Jan-14 21:15pm
v2

If you are trying to debug an SP, try http://msdn.microsoft.com/en-us/library/xehsh1hb.aspx[^].
 
Share this answer
 
Comments
Christian Graus 23-Jan-14 3:13am    
He used that terminology, but it's very clear what he meant.
You mean line breaks ? A break point is something completely different.

I've never done this, but lucky for you, I know how to use google[^]. Short version, char(13) is right, char(10) is not needed.

It probably depends on where you output the string, as well. Honestly, I think you're better off adding the line break in your presentation layer, it's a function of display, not of data
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900