Solved

sql force line/string break

Posted on 2009-07-14
1
358 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MS SQL with ODBC 5 36
SQL Server - Set Value of Multiple Fields in One Query 10 23
why sql server only update some statistics in the database ? 3 21
Tsql query 6 21
In this article I will describe the Backup & Restore 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.
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.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to shrink a transaction log file down to a reasonable size.

770 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