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.
| Author |
Topic |
|
Swati Jain
Posting Yak Master
139 Posts |
Posted - 2009-05-05 : 09:58:51
|
| hi AllHi I have query like select 'History :'+History +'Complaint :'+Complaint as Summaryfrom tlbi want output asSummaryHistory:--Some long textCompaint:-Some long text but i am getting output in single lineas History:--Some long text Compaint:-Some long texthow i should correct this? pls help me asap |
|
|
sakets_2000
Master Smack Fu Yak Hacker
1472 Posts |
Posted - 2009-05-05 : 10:06:16
|
These kind of issues are meant to be handled in front end.try this anyhow...select 'History :'+History +char(13) +'Complaint :'+Complaint from tlb |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2009-05-05 : 10:14:14
|
| Also you need to set result mode to TextMadhivananFailing to plan is Planning to fail |
 |
|
|
Lamprey
Master Smack Fu Yak Hacker
4614 Posts |
Posted - 2009-05-05 : 11:34:29
|
| CHAR(13) should work fine, but I've seen some strnage behavior in the past unless I used CR + LF: CHAR(13) + CHAR(10). FYI.. |
 |
|
|
|
|
|