Advertisement

05.15.2008 at 11:23AM PDT, ID: 23406187
[x]
Attachment Details

How to remove line break from the column value?

Asked by Yogeshup in SQL Query Syntax, SQL Server 2005

Tags: SQL Server 2005

Hi,

In a table i'm having a column in which some rows having carriage return (line break) in it. which causing problem which export output csv file

(Note: below column values is on row value)
Column1
----------
"ds afdusaf dfidu iodu fd
fda f
d afd"

when i extract the table values through SQLCMD and the output to csv file there it appear in multiple lines where as i would like to see in one line.

I need an sql command which will return in one column
Column 1
-----------
"ds afdusaf dfidu iodu fd fda f d afd"

Thanks in advanceStart Free Trial
[+][-]05.15.2008 at 11:58AM PDT, ID: 21576914

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.15.2008 at 12:03PM PDT, ID: 21576958

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, SQL Server 2005
Tags: SQL Server 2005
Sign Up Now!
Solution Provided By: ydramu
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628