<?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/"
		>
<channel>
	<title>Comments on: Insert Carriage Return Line Feed to String</title>
	<atom:link href="http://sqlserverplanet.com/sql/sql-server-insert-carriage-return-line-feed-to-string/feed" rel="self" type="application/rss+xml" />
	<link>http://sqlserverplanet.com/sql/sql-server-insert-carriage-return-line-feed-to-string</link>
	<description>Tips and Articles on SQL Server</description>
	<lastBuildDate>Wed, 16 May 2012 18:08:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sahani</title>
		<link>http://sqlserverplanet.com/sql/sql-server-insert-carriage-return-line-feed-to-string/comment-page-1#comment-1020</link>
		<dc:creator>Sahani</dc:creator>
		<pubDate>Wed, 21 Dec 2011 07:02:34 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=80#comment-1020</guid>
		<description>I want to concatenate addr1 addr2 addr3 columns using as400 sql and print as follows 
addr1,
addr2,
addr3.</description>
		<content:encoded><![CDATA[<p>I want to concatenate addr1 addr2 addr3 columns using as400 sql and print as follows<br />
addr1,<br />
addr2,<br />
addr3.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sahani</title>
		<link>http://sqlserverplanet.com/sql/sql-server-insert-carriage-return-line-feed-to-string/comment-page-1#comment-1019</link>
		<dc:creator>Sahani</dc:creator>
		<pubDate>Wed, 21 Dec 2011 07:00:30 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=80#comment-1019</guid>
		<description>I want to conatenate 3 address columns as</description>
		<content:encoded><![CDATA[<p>I want to conatenate 3 address columns as</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://sqlserverplanet.com/sql/sql-server-insert-carriage-return-line-feed-to-string/comment-page-1#comment-909</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 07 Oct 2011 15:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=80#comment-909</guid>
		<description>Thanks for the tip, I was having issues generating IIF files for QuickBooks and they require a CRLF, but when it came out of BCP, it only had the LF. This fixed it for me.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip, I was having issues generating IIF files for QuickBooks and they require a CRLF, but when it came out of BCP, it only had the LF. This fixed it for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek Dieter</title>
		<link>http://sqlserverplanet.com/sql/sql-server-insert-carriage-return-line-feed-to-string/comment-page-1#comment-429</link>
		<dc:creator>Derek Dieter</dc:creator>
		<pubDate>Mon, 20 Dec 2010 21:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=80#comment-429</guid>
		<description>Hi Alistair,

Yes, if I&#039;m understanding you correctly, this should be the same way mentioned above.

So if you want update all rows in a table, you would do:

SELECT NewNotesColumn = REPLACE(n.NotesColumn,&#039;[crlf]&#039;,CHAR(13)+CHAR(10))
INTO #NewNotesTable
FROM Notes n

Good luck!</description>
		<content:encoded><![CDATA[<p>Hi Alistair,</p>
<p>Yes, if I&#8217;m understanding you correctly, this should be the same way mentioned above.</p>
<p>So if you want update all rows in a table, you would do:</p>
<p>SELECT NewNotesColumn = REPLACE(n.NotesColumn,&#8217;[crlf]&#8216;,CHAR(13)+CHAR(10))<br />
INTO #NewNotesTable<br />
FROM Notes n</p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alistair</title>
		<link>http://sqlserverplanet.com/sql/sql-server-insert-carriage-return-line-feed-to-string/comment-page-1#comment-427</link>
		<dc:creator>alistair</dc:creator>
		<pubDate>Sat, 18 Dec 2010 15:50:44 +0000</pubDate>
		<guid isPermaLink="false">http://sqlserverplanet.com/?p=80#comment-427</guid>
		<description>Hi Derek,
Do you know how this can be adapted to use in a select / update statement on many rows in a table? I tried to adapt the above into a function, but i can&#039;t get it to work.
I did this for example...
select REPLACE(&#039;line one[crlf]line two.&#039;,&#039;[crlf]&#039;,CHAR(13)+CHAR(10))
Do you have any ideas?
Cheers,
Alistair</description>
		<content:encoded><![CDATA[<p>Hi Derek,<br />
Do you know how this can be adapted to use in a select / update statement on many rows in a table? I tried to adapt the above into a function, but i can&#8217;t get it to work.<br />
I did this for example&#8230;<br />
select REPLACE(&#8216;line one[crlf]line two.&#8217;,&#8217;[crlf]&#8216;,CHAR(13)+CHAR(10))<br />
Do you have any ideas?<br />
Cheers,<br />
Alistair</p>
]]></content:encoded>
	</item>
</channel>
</rss>

