<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211;  T-SQL Script to Insert Carriage Return and New Line Feed in Code</title>
	<atom:link href="http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Pradeep</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-57587</link>
		<dc:creator>Pradeep</dc:creator>
		<pubDate>Fri, 13 Nov 2009 07:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-57587</guid>
		<description>HI,

I have a problem inserting new line in a string generated by “for xml”, trying to display a new line in RDLC report field.

I don&#039;t want to parse the string from c# code..

How do i do this, through tsql.

Thanks,
Pradeep</description>
		<content:encoded><![CDATA[<p>HI,</p>
<p>I have a problem inserting new line in a string generated by “for xml”, trying to display a new line in RDLC report field.</p>
<p>I don&#8217;t want to parse the string from c# code..</p>
<p>How do i do this, through tsql.</p>
<p>Thanks,<br />
Pradeep</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pradeep</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-57586</link>
		<dc:creator>Pradeep</dc:creator>
		<pubDate>Fri, 13 Nov 2009 07:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-57586</guid>
		<description>HI,

I have a problem inserting new line in a string generated by &quot;for xml&quot;, trying to display a new line RDLC report field.

Ho do i do this, Can anybody help

Pradeep</description>
		<content:encoded><![CDATA[<p>HI,</p>
<p>I have a problem inserting new line in a string generated by &#8220;for xml&#8221;, trying to display a new line RDLC report field.</p>
<p>Ho do i do this, Can anybody help</p>
<p>Pradeep</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj Mahida</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-57247</link>
		<dc:creator>Raj Mahida</dc:creator>
		<pubDate>Sun, 01 Nov 2009 15:43:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-57247</guid>
		<description>Hi Pinal,

I got stuck on this task, but the article help me out. 

Thanks,
Raj Mahida</description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I got stuck on this task, but the article help me out. </p>
<p>Thanks,<br />
Raj Mahida</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peggy</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-55866</link>
		<dc:creator>peggy</dc:creator>
		<pubDate>Mon, 14 Sep 2009 17:33:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-55866</guid>
		<description>It is the opposite of what Vishal Sharma is trying to do.
He has new lines already and is trying to remove them.</description>
		<content:encoded><![CDATA[<p>It is the opposite of what Vishal Sharma is trying to do.<br />
He has new lines already and is trying to remove them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Tkatch</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-55859</link>
		<dc:creator>Brian Tkatch</dc:creator>
		<pubDate>Mon, 14 Sep 2009 12:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-55859</guid>
		<description>@peggy

I do not understand. How is that the reverse?</description>
		<content:encoded><![CDATA[<p>@peggy</p>
<p>I do not understand. How is that the reverse?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peggy</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-55828</link>
		<dc:creator>peggy</dc:creator>
		<pubDate>Fri, 11 Sep 2009 22:02:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-55828</guid>
		<description>newbie question

I am trying to do the reverse

I need to concatenate some text and insert newlines in between, return the same in a stored procedure.

I need to display the result on a coldfusion website.

How do I insert the new lines?</description>
		<content:encoded><![CDATA[<p>newbie question</p>
<p>I am trying to do the reverse</p>
<p>I need to concatenate some text and insert newlines in between, return the same in a stored procedure.</p>
<p>I need to display the result on a coldfusion website.</p>
<p>How do I insert the new lines?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ferenc Mantfeld</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-53902</link>
		<dc:creator>Ferenc Mantfeld</dc:creator>
		<pubDate>Tue, 21 Jul 2009 07:25:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-53902</guid>
		<description>To Alex, who was looking for a way to strip out the carriage returns from an expression, try this. It will strip out the carriage returns:


select replace(source_column,char(10),&#039;&#039;) from 
........
where ......</description>
		<content:encoded><![CDATA[<p>To Alex, who was looking for a way to strip out the carriage returns from an expression, try this. It will strip out the carriage returns:</p>
<p>select replace(source_column,char(10),&#8221;) from<br />
&#8230;&#8230;..<br />
where &#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charu</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-52866</link>
		<dc:creator>Charu</dc:creator>
		<pubDate>Tue, 09 Jun 2009 09:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-52866</guid>
		<description>URGENT HELP:

I am using the following code in ASP

bdy      = &quot; The Incident &quot; &amp; objrse(&quot;incident_id&quot;) &amp; &quot; was created on &quot; &amp;    objrse(&quot;incident_datetime&quot;) &amp; &quot;.&quot; 

I need to replace  with chr(13) &amp; chr(10)

I did the following:

bdy      = &quot;chr(13) &amp; chr(10) The Incident &quot; &amp; objrse(&quot;incident_id&quot;) &amp; &quot; was created on &quot; &amp;  objrse(&quot;incident_datetime&quot;) &amp; &quot;.&quot; 

but it is not working.

Can someone pls correct the syntax urgently</description>
		<content:encoded><![CDATA[<p>URGENT HELP:</p>
<p>I am using the following code in ASP</p>
<p>bdy      = &#8221; The Incident &#8221; &amp; objrse(&#8220;incident_id&#8221;) &amp; &#8221; was created on &#8221; &amp;    objrse(&#8220;incident_datetime&#8221;) &amp; &#8220;.&#8221; </p>
<p>I need to replace  with chr(13) &amp; chr(10)</p>
<p>I did the following:</p>
<p>bdy      = &#8220;chr(13) &amp; chr(10) The Incident &#8221; &amp; objrse(&#8220;incident_id&#8221;) &amp; &#8221; was created on &#8221; &amp;  objrse(&#8220;incident_datetime&#8221;) &amp; &#8220;.&#8221; </p>
<p>but it is not working.</p>
<p>Can someone pls correct the syntax urgently</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bharath</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-51313</link>
		<dc:creator>Bharath</dc:creator>
		<pubDate>Mon, 27 Apr 2009 09:49:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-51313</guid>
		<description>U can use COALESCE for that, 

Syntax: 
DECLARE @str varchar(10);
SELECT @str = COALESCE(@str + &#039; &#039;,&#039;&#039;) + Convert(varchar,Phone) FROM 

Tope This solves u&#039;r problem</description>
		<content:encoded><![CDATA[<p>U can use COALESCE for that, </p>
<p>Syntax:<br />
DECLARE @str varchar(10);<br />
SELECT @str = COALESCE(@str + &#8216; &#8216;,&#8221;) + Convert(varchar,Phone) FROM </p>
<p>Tope This solves u&#8217;r problem</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishal Sharma</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-51093</link>
		<dc:creator>Vishal Sharma</dc:creator>
		<pubDate>Sat, 18 Apr 2009 09:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-51093</guid>
		<description>Hi,
   my requirement is little bit complex, i want to return repeatation of columns as many as rows in table like 
if table is following    
phone userid
222       1
333       1
444      1
555      1

and desired output should be
userid phone1 phone2  phone3     phone4
 
 1         222       333         444        555

plz suggest as i need it urgently.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
   my requirement is little bit complex, i want to return repeatation of columns as many as rows in table like<br />
if table is following<br />
phone userid<br />
222       1<br />
333       1<br />
444      1<br />
555      1</p>
<p>and desired output should be<br />
userid phone1 phone2  phone3     phone4</p>
<p> 1         222       333         444        555</p>
<p>plz suggest as i need it urgently.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deep</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-48621</link>
		<dc:creator>Deep</dc:creator>
		<pubDate>Tue, 10 Mar 2009 15:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-48621</guid>
		<description>Hi All\Pinal,


I wrote a Stored procedure using Char (10) + char(13)
to get the data which we will be transmitting to different locations.According to their requirement i should get all the headings as below
(Eg: 

CAL_INFO/---/----/------//END
CAL_DETAILS ---/----/---//END
CAL_TEST/---/---/---/END        
)

The output will be saved as a text file through our application.I couldn&#039;t get the rows aligned as required also i&#039;m getting boxes in the text file for some reason like the special characters..... can some one help meout with this.......</description>
		<content:encoded><![CDATA[<p>Hi All\Pinal,</p>
<p>I wrote a Stored procedure using Char (10) + char(13)<br />
to get the data which we will be transmitting to different locations.According to their requirement i should get all the headings as below<br />
(Eg: </p>
<p>CAL_INFO/&#8212;/&#8212;-/&#8212;&#8212;//END<br />
CAL_DETAILS &#8212;/&#8212;-/&#8212;//END<br />
CAL_TEST/&#8212;/&#8212;/&#8212;/END<br />
)</p>
<p>The output will be saved as a text file through our application.I couldn&#8217;t get the rows aligned as required also i&#8217;m getting boxes in the text file for some reason like the special characters&#8230;.. can some one help meout with this&#8230;&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-47241</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:10:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-47241</guid>
		<description>[...] SQL SERVER - T-SQL Script to Insert Carriage Return and New Line Feed in Code [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; T-SQL Script to Insert Carriage Return and New Line Feed in Code [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhu</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-46518</link>
		<dc:creator>Madhu</dc:creator>
		<pubDate>Tue, 10 Feb 2009 11:20:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-46518</guid>
		<description>Hi,

Large volume of data is retrieved from a Query[Select with 3 table joins]. Output has the LineFeed at the end of each Row.

Actually I&#039;m looking for inserting a Carraige Return at the end of each line along with the Line Feed.

Please help me. Thank you,</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Large volume of data is retrieved from a Query[Select with 3 table joins]. Output has the LineFeed at the end of each Row.</p>
<p>Actually I&#8217;m looking for inserting a Carraige Return at the end of each line along with the Line Feed.</p>
<p>Please help me. Thank you,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raj</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-45144</link>
		<dc:creator>Raj</dc:creator>
		<pubDate>Mon, 29 Dec 2008 01:15:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-45144</guid>
		<description>Thanks for this post. It was exactly what I was looking for. :-)</description>
		<content:encoded><![CDATA[<p>Thanks for this post. It was exactly what I was looking for. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: muneer</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-44436</link>
		<dc:creator>muneer</dc:creator>
		<pubDate>Sat, 29 Nov 2008 08:47:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-44436</guid>
		<description>its quite simple and effective..i got the answer wot am serchng 4..saves a lot of tym...thanx</description>
		<content:encoded><![CDATA[<p>its quite simple and effective..i got the answer wot am serchng 4..saves a lot of tym&#8230;thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shailesh</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-44032</link>
		<dc:creator>Shailesh</dc:creator>
		<pubDate>Mon, 03 Nov 2008 13:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-44032</guid>
		<description>This was very useful Man ! Its easy to miss such small things. Reading this article saved me a lot of Time. So Thanks and keep up the Good Work

Shailesh</description>
		<content:encoded><![CDATA[<p>This was very useful Man ! Its easy to miss such small things. Reading this article saved me a lot of Time. So Thanks and keep up the Good Work</p>
<p>Shailesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tea</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-42460</link>
		<dc:creator>Tea</dc:creator>
		<pubDate>Sat, 06 Sep 2008 02:59:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-42460</guid>
		<description>But 
In Microsoft SQL server 2005  Managerment Studio 
I want to enter a new line when I am writting content in  table editor screen - .
How do you Know?  as s Hot key?
Thanks so much !</description>
		<content:encoded><![CDATA[<p>But<br />
In Microsoft SQL server 2005  Managerment Studio<br />
I want to enter a new line when I am writting content in  table editor screen &#8211; .<br />
How do you Know?  as s Hot key?<br />
Thanks so much !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-39455</link>
		<dc:creator>Chad</dc:creator>
		<pubDate>Tue, 24 Jun 2008 05:18:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-39455</guid>
		<description>Thanks so much.  A big help!</description>
		<content:encoded><![CDATA[<p>Thanks so much.  A big help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-37313</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Thu, 08 May 2008 13:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-37313</guid>
		<description>Awesome, thanks.  Simple and effective.</description>
		<content:encoded><![CDATA[<p>Awesome, thanks.  Simple and effective.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vincent</title>
		<link>http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-36230</link>
		<dc:creator>vincent</dc:creator>
		<pubDate>Thu, 01 May 2008 17:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/22/sql-server-t-sql-script-to-insert-carriage-return-and-new-line-feed-in-code/#comment-36230</guid>
		<description>CHAR(10) = Line Feed (LF)
CHAR(13) = Carriage Return  (CR)</description>
		<content:encoded><![CDATA[<p>CHAR(10) = Line Feed (LF)<br />
CHAR(13) = Carriage Return  (CR)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
