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

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Carriage return issue in single column

Author  Topic 

anujpratap09
Starting Member

5 Posts

Posted - 2010-01-30 : 03:22:08
Hi All,
I need Carriage return in single column. after some data.
So i store data in column is given below.
Between 85% & 89.5% in Science & Math’s in
Class X board exam. char(13) Or
Between 80% & 84.5% in PCB in Class XII board exam.


but when i select the column all data showing in a single line and CHAR(13) also showing.
please help me.
Thanks in advance.

Anuj Pratap Singh

Kristen
Test

22859 Posts

Posted - 2010-01-30 : 04:44:25
Yeah, well its just in your "text", so it will display exactly as you have entered it. You need to use it in a string concatenation, if this is SQL then it will be something like:

'Between 85% & 89.5% in Science & Math’s in
Class X board exam.' + char(13) + CHAR(10) + 'Or
Between 80% & 84.5% in PCB in Class XII board exam.'
Go to Top of Page
   

- Advertisement -