Solved

sql force line/string break

Posted on 2009-07-14
1
334 Views
Last Modified: 2012-05-07
I have a string returing as the following - problme is that my gridview cell will not wrap it because it picks up the "Insertion/Replacement/Conversion" as one long unbroken string - the below is an example - not all will have "/? - som just might be really long medical terms - if there a way - in TSQL - after so many chars, etc. to force a break?

Insertion/Replacement/Conversion of a permanent dual chamber pacemaker
0
Comment
Question by:tbaseflug
1 Comment
 
LVL 17

Accepted Solution

by:
pssandhu earned 500 total points
ID: 24852536
Incser this where ever you need to add a break line:
CHAR(13) + CHAR(10)
Hopefully that should do it.
P.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now