<?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; Difference between Line Feed (\n) and Carriage Return (\r) &#8211; T-SQL New Line Char</title>
	<atom:link href="http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sat, 25 May 2013 01:31:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: ganesh</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-335080</link>
		<dc:creator><![CDATA[ganesh]]></dc:creator>
		<pubDate>Tue, 21 Aug 2012 19:40:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-335080</guid>
		<description><![CDATA[you need to use &lt;pre&gt;&lt;/pre&gt;  in the char(10) place it should be work .]]></description>
		<content:encoded><![CDATA[<p>you need to use
<pre></pre>
<p>  in the char(10) place it should be work .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ganesh</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-335078</link>
		<dc:creator><![CDATA[ganesh]]></dc:creator>
		<pubDate>Tue, 21 Aug 2012 19:36:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-335078</guid>
		<description><![CDATA[you need to  use &#039;&#039;  in the char(10) place it should be work .]]></description>
		<content:encoded><![CDATA[<p>you need to  use &#8221;  in the char(10) place it should be work .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anirudha Gohokar (@AnirudhaGohokar)</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-305616</link>
		<dc:creator><![CDATA[Anirudha Gohokar (@AnirudhaGohokar)]]></dc:creator>
		<pubDate>Mon, 25 Jun 2012 12:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-305616</guid>
		<description><![CDATA[/r----&gt;says go to starting position of same line
/n----&gt;says go to next line
so
/r/n---&gt;goes to starting position of next line]]></description>
		<content:encoded><![CDATA[<p>/r&#8212;-&gt;says go to starting position of same line<br />
/n&#8212;-&gt;says go to next line<br />
so<br />
/r/n&#8212;&gt;goes to starting position of next line</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jk</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-292069</link>
		<dc:creator><![CDATA[jk]]></dc:creator>
		<pubDate>Fri, 01 Jun 2012 06:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-292069</guid>
		<description><![CDATA[beautiful explanation .. thanks]]></description>
		<content:encoded><![CDATA[<p>beautiful explanation .. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suansh Singhal</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-253875</link>
		<dc:creator><![CDATA[Suansh Singhal]]></dc:creator>
		<pubDate>Sat, 18 Feb 2012 14:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-253875</guid>
		<description><![CDATA[For Oracle databases, one can make use of REPLACE function as follows - 
REPLACE(Con.COMMENTS, CHR(13) &#124;&#124; CHR(10), ‘ ‘) as “Updated_Comments”



For a detailed example, please refer to following link:
http://crackingsiebel.wordpress.com/2010/08/21/oracle-sql-replace-newline-or-linefeed-character/]]></description>
		<content:encoded><![CDATA[<p>For Oracle databases, one can make use of REPLACE function as follows &#8211;<br />
REPLACE(Con.COMMENTS, CHR(13) || CHR(10), ‘ ‘) as “Updated_Comments”</p>
<p>For a detailed example, please refer to following link:<br />
<a href="http://crackingsiebel.wordpress.com/2010/08/21/oracle-sql-replace-newline-or-linefeed-character/" rel="nofollow">http://crackingsiebel.wordpress.com/2010/08/21/oracle-sql-replace-newline-or-linefeed-character/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: some guy</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-164039</link>
		<dc:creator><![CDATA[some guy]]></dc:creator>
		<pubDate>Wed, 31 Aug 2011 20:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-164039</guid>
		<description><![CDATA[I know it&#039;s an old post, but Apple only used \r to OS9 - OSX, a Unix, uses \n like the rest of the civilized world :)]]></description>
		<content:encoded><![CDATA[<p>I know it&#8217;s an old post, but Apple only used \r to OS9 &#8211; OSX, a Unix, uses \n like the rest of the civilized world :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-149129</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 18 Jul 2011 11:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-149129</guid>
		<description><![CDATA[You need to set the result mode to Text in the Query Analyser]]></description>
		<content:encoded><![CDATA[<p>You need to set the result mode to Text in the Query Analyser</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abegailabundo</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-148697</link>
		<dc:creator><![CDATA[abegailabundo]]></dc:creator>
		<pubDate>Sat, 16 Jul 2011 10:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-148697</guid>
		<description><![CDATA[Hi MIT,

Please check this solution http://blog.sqlauthority.com/2008/01/08/sql-server-2005-export-data-from-sql-server-2005-to-microsoft-excel-datasheet/]]></description>
		<content:encoded><![CDATA[<p>Hi MIT,</p>
<p>Please check this solution <a href="http://blog.sqlauthority.com/2008/01/08/sql-server-2005-export-data-from-sql-server-2005-to-microsoft-excel-datasheet/" rel="nofollow">http://blog.sqlauthority.com/2008/01/08/sql-server-2005-export-data-from-sql-server-2005-to-microsoft-excel-datasheet/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MIT</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-148529</link>
		<dc:creator><![CDATA[MIT]]></dc:creator>
		<pubDate>Fri, 15 Jul 2011 17:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-148529</guid>
		<description><![CDATA[Hi all ,
I am exporting data from SQL server 2005 to a text file using stored procedure. But line break between two records are not working. My code looks like this

SET @Data =  @FNAME  
SET @Data = @Data + CHAR(13)  + @LName

I also tried \r\n , CHAR(13) + CHAR(10) etc.

Thanx]]></description>
		<content:encoded><![CDATA[<p>Hi all ,<br />
I am exporting data from SQL server 2005 to a text file using stored procedure. But line break between two records are not working. My code looks like this</p>
<p>SET @Data =  @FNAME<br />
SET @Data = @Data + CHAR(13)  + @LName</p>
<p>I also tried \r\n , CHAR(13) + CHAR(10) etc.</p>
<p>Thanx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Database Worst Practices – New Town and New Job and New Disasters Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-147559</link>
		<dc:creator><![CDATA[SQL SERVER – Database Worst Practices – New Town and New Job and New Disasters Journey to SQLAuthority]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 01:32:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-147559</guid>
		<description><![CDATA[[...] (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-147542</link>
		<dc:creator><![CDATA[just]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 00:08:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-147542</guid>
		<description><![CDATA[I am generating SQL script through Java. \r\n does not work, what should I be using in Java?]]></description>
		<content:encoded><![CDATA[<p>I am generating SQL script through Java. \r\n does not work, what should I be using in Java?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: just</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-147541</link>
		<dc:creator><![CDATA[just]]></dc:creator>
		<pubDate>Tue, 12 Jul 2011 00:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-147541</guid>
		<description><![CDATA[I am trying to generate SQL script through Java and using \r\n doesn&#039;t work. What should I use in Java?]]></description>
		<content:encoded><![CDATA[<p>I am trying to generate SQL script through Java and using \r\n doesn&#8217;t work. What should I use in Java?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-144163</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Mon, 27 Jun 2011 10:26:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-144163</guid>
		<description><![CDATA[Search for rowset concatenation in this site]]></description>
		<content:encoded><![CDATA[<p>Search for rowset concatenation in this site</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lakshmi</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-143204</link>
		<dc:creator><![CDATA[Lakshmi]]></dc:creator>
		<pubDate>Thu, 23 Jun 2011 13:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-143204</guid>
		<description><![CDATA[cant this be  handled using some logic?]]></description>
		<content:encoded><![CDATA[<p>cant this be  handled using some logic?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-143182</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 23 Jun 2011 11:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-143182</guid>
		<description><![CDATA[This is the formation issue which should be done in the front end application]]></description>
		<content:encoded><![CDATA[<p>This is the formation issue which should be done in the front end application</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lakshmi</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-142918</link>
		<dc:creator><![CDATA[Lakshmi]]></dc:creator>
		<pubDate>Wed, 22 Jun 2011 06:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-142918</guid>
		<description><![CDATA[Hi,
Dave,

Could u please help me in this:
I have to convert multiple rows (Record-set as in Table1) returned from a query  into a  single column data(As in Table2) with line in between the row data and store it to another table.
Is this possible using CR / LF, if yes please let me know how to use the same.


Table1	
RowNumber	                  Data
1	                                  A
2	                                  B
3	                                  C
4	                                  D
5	                                  E
	
Table2	
RowNumber	                Data
1	                                 A
	                                 B
	                                 C
	                                 D
	                                 E


Thanks in advance - Lakshmi]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Dave,</p>
<p>Could u please help me in this:<br />
I have to convert multiple rows (Record-set as in Table1) returned from a query  into a  single column data(As in Table2) with line in between the row data and store it to another table.<br />
Is this possible using CR / LF, if yes please let me know how to use the same.</p>
<p>Table1<br />
RowNumber	                  Data<br />
1	                                  A<br />
2	                                  B<br />
3	                                  C<br />
4	                                  D<br />
5	                                  E</p>
<p>Table2<br />
RowNumber	                Data<br />
1	                                 A<br />
	                                 B<br />
	                                 C<br />
	                                 D<br />
	                                 E</p>
<p>Thanks in advance &#8211; Lakshmi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Penn</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-142824</link>
		<dc:creator><![CDATA[Penn]]></dc:creator>
		<pubDate>Tue, 21 Jun 2011 21:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-142824</guid>
		<description><![CDATA[Very useful information Grant.  Cheers.]]></description>
		<content:encoded><![CDATA[<p>Very useful information Grant.  Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Molly</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-133931</link>
		<dc:creator><![CDATA[Molly]]></dc:creator>
		<pubDate>Wed, 11 May 2011 06:00:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-133931</guid>
		<description><![CDATA[Nice post.

I have a question: 

If want to do this:

print ‘bla bla’
WAITFOR DELAY &#039;00:00:10&#039;;
Print ‘ After bla’

And I want something like this:

bla bla 

on the screen and after 10 seconds

bla bla After bla

a print prints a CRLF right a way

-- Sorry for my poor English and I borrow the words from Hennie de Nooijer]]></description>
		<content:encoded><![CDATA[<p>Nice post.</p>
<p>I have a question: </p>
<p>If want to do this:</p>
<p>print ‘bla bla’<br />
WAITFOR DELAY &#8217;00:00:10&#8242;;<br />
Print ‘ After bla’</p>
<p>And I want something like this:</p>
<p>bla bla </p>
<p>on the screen and after 10 seconds</p>
<p>bla bla After bla</p>
<p>a print prints a CRLF right a way</p>
<p>&#8211; Sorry for my poor English and I borrow the words from Hennie de Nooijer</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahendra</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-126362</link>
		<dc:creator><![CDATA[Mahendra]]></dc:creator>
		<pubDate>Sun, 03 Apr 2011 12:42:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-126362</guid>
		<description><![CDATA[Very good sample........]]></description>
		<content:encoded><![CDATA[<p>Very good sample&#8230;&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Welch</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-123844</link>
		<dc:creator><![CDATA[Mike Welch]]></dc:creator>
		<pubDate>Fri, 18 Mar 2011 19:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-123844</guid>
		<description><![CDATA[Follow-up: Messing with the Results as Text option seems to have fixed this problem for me.]]></description>
		<content:encoded><![CDATA[<p>Follow-up: Messing with the Results as Text option seems to have fixed this problem for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kees C. Bakker</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-123318</link>
		<dc:creator><![CDATA[Kees C. Bakker]]></dc:creator>
		<pubDate>Tue, 15 Mar 2011 11:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-123318</guid>
		<description><![CDATA[Thanks a lot Pinal! I just want to let you know that I enjoy your posts very much. They&#039;re filled with information and good examples. Keep up the good work!]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot Pinal! I just want to let you know that I enjoy your posts very much. They&#8217;re filled with information and good examples. Keep up the good work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Welch</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-123210</link>
		<dc:creator><![CDATA[Mike Welch]]></dc:creator>
		<pubDate>Mon, 14 Mar 2011 16:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-123210</guid>
		<description><![CDATA[Hello Dave,

I&#039;m running into a problem related to carriage return, line feeds in  converting an application from SS 2005 to SS 2008 R2.

In the earlier version of the app, using SS 2005, I was able store multiple lines of text, each terminated with &quot;CHAR(13)+CHAR(10)&quot; into a text field in a SQL data record.

However I find that with SS 2008 R2, the field doesn&#039;t seem to actually store the characters, but converts them to spaces?

This happens both with in my  VB code and when I try it directly in the SS Management Studio. Doesn&#039;t seem to matter if the target field is type TEXT (now deprecated) or VARCHAR(MAX).

Following is an example of what I mean:

    INSERT INTO [adminSLOT].[dbo].[ProcessLogs]
           ([SessionID]
           ,[UserID]
           ,[LogText])
     VALUES (
           CONVERT(varchar(22),GETDATE())
           ,&#039;Me&#039;
           ,&#039;This is one line of code.&#039; + CHAR(13) + CHAR(10) + &#039;Here is another.&#039; + CHAR(13) + CHAR(10) + &#039;Third and last line.&#039;)


It works in 2005, but not in 2008R2?]]></description>
		<content:encoded><![CDATA[<p>Hello Dave,</p>
<p>I&#8217;m running into a problem related to carriage return, line feeds in  converting an application from SS 2005 to SS 2008 R2.</p>
<p>In the earlier version of the app, using SS 2005, I was able store multiple lines of text, each terminated with &#8220;CHAR(13)+CHAR(10)&#8221; into a text field in a SQL data record.</p>
<p>However I find that with SS 2008 R2, the field doesn&#8217;t seem to actually store the characters, but converts them to spaces?</p>
<p>This happens both with in my  VB code and when I try it directly in the SS Management Studio. Doesn&#8217;t seem to matter if the target field is type TEXT (now deprecated) or VARCHAR(MAX).</p>
<p>Following is an example of what I mean:</p>
<p>    INSERT INTO [adminSLOT].[dbo].[ProcessLogs]<br />
           ([SessionID]<br />
           ,[UserID]<br />
           ,[LogText])<br />
     VALUES (<br />
           CONVERT(varchar(22),GETDATE())<br />
           ,&#8217;Me&#8217;<br />
           ,&#8217;This is one line of code.&#8217; + CHAR(13) + CHAR(10) + &#8216;Here is another.&#8217; + CHAR(13) + CHAR(10) + &#8216;Third and last line.&#8217;)</p>
<p>It works in 2005, but not in 2008R2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Kelly</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-112478</link>
		<dc:creator><![CDATA[Paul Kelly]]></dc:creator>
		<pubDate>Fri, 21 Jan 2011 13:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-112478</guid>
		<description><![CDATA[I am using T-SQL to update the online help in an application. The help is displayed when the mouse hovers over the field.

I do not have source code.

To make the help more readable, I have used CR / LF to create new paragraphs.

I do not like embedding control characters in fields, it can cause problems for people who come after me. 

Is there a better or standard way to do this or must I use CR / LF]]></description>
		<content:encoded><![CDATA[<p>I am using T-SQL to update the online help in an application. The help is displayed when the mouse hovers over the field.</p>
<p>I do not have source code.</p>
<p>To make the help more readable, I have used CR / LF to create new paragraphs.</p>
<p>I do not like embedding control characters in fields, it can cause problems for people who come after me. </p>
<p>Is there a better or standard way to do this or must I use CR / LF</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-110471</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 11 Jan 2011 11:00:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-110471</guid>
		<description><![CDATA[You need to use char(13) along with char(10)]]></description>
		<content:encoded><![CDATA[<p>You need to use char(13) along with char(10)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj Phukane</title>
		<link>http://blog.sqlauthority.com/2009/07/01/sql-server-difference-between-line-feed-n-and-carriage-return-r-t-sql-new-line-char/#comment-110467</link>
		<dc:creator><![CDATA[Pankaj Phukane]]></dc:creator>
		<pubDate>Tue, 11 Jan 2011 10:27:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=5775#comment-110467</guid>
		<description><![CDATA[Hello,

I am sending email using sp_send_dbmail.
My @msg variable is set as

set @msg= @msg + char(10)
set @msg= @msg + &#039;By: &#039; + @ReportedBy + char(10)
set @msg= @msg + &#039;On: &#039; + cast(getdate() as varchar(50)) + char(10)
set @msg= @msg + &#039;With Ticket Number :&#039; + @TicketNumber + char(10)+ char(10)
set @msg= @msg + &#039;Of Department:&#039; + @Department + char(10)
set @msg= @msg + &#039;For Module:&#039; + @Module + char(10)
set @msg= @msg + &#039;of Error Type:&#039; + @ErrorType + char(10)
set @msg= @msg + &#039;Having Priority:&#039; + @Priority + char(10)
set @msg= @msg + &#039;With Short Text: &#039; + @TicketShortText +&#039;.&#039;+ char(10)+ char(10)
set @msg= @msg + &#039;Please do not respond to this mail, as it was automatically generated.&#039; + char(10)+ char(10)
set @msg= @msg + &#039;Best Wishes From&#039;  + char(10)
set @msg= @msg + &#039;System Administrator&#039;

it is showing in sql as 
Hello,

The Following Ticket has been changed.
By: Sandeep Vaidya
On: Jan 11 2011  3:49PM
With Ticket Number :10004

Of Department:Information Technology
For Module:IT
of Error Type:Customization
Having Priority:Low
With Short Text: Testing To All Changes.

Please do not respond to this mail, as it was automatically generated.

Best Wishes From
System Administrator

But in email as
Hello, The Following Ticket has been changed. By: Sandeep Vaidya On: Jan 11 2011 3:43PM With Ticket Number :10004 Of Department:Information Technology For Module:IT of Error Type:Customization Having Priority:Low With Short Text: Testing To All Changes. Please do not respond to this mail, as it was automatically generated. Best Wishes From System Administrator

Thanks in advance
Please advise.

Pankaj Phukane]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I am sending email using sp_send_dbmail.<br />
My @msg variable is set as</p>
<p>set @msg= @msg + char(10)<br />
set @msg= @msg + &#8216;By: &#8216; + @ReportedBy + char(10)<br />
set @msg= @msg + &#8216;On: &#8216; + cast(getdate() as varchar(50)) + char(10)<br />
set @msg= @msg + &#8216;With Ticket Number :&#8217; + @TicketNumber + char(10)+ char(10)<br />
set @msg= @msg + &#8216;Of Department:&#8217; + @Department + char(10)<br />
set @msg= @msg + &#8216;For Module:&#8217; + @Module + char(10)<br />
set @msg= @msg + &#8216;of Error Type:&#8217; + @ErrorType + char(10)<br />
set @msg= @msg + &#8216;Having Priority:&#8217; + @Priority + char(10)<br />
set @msg= @msg + &#8216;With Short Text: &#8216; + @TicketShortText +&#8217;.'+ char(10)+ char(10)<br />
set @msg= @msg + &#8216;Please do not respond to this mail, as it was automatically generated.&#8217; + char(10)+ char(10)<br />
set @msg= @msg + &#8216;Best Wishes From&#8217;  + char(10)<br />
set @msg= @msg + &#8216;System Administrator&#8217;</p>
<p>it is showing in sql as<br />
Hello,</p>
<p>The Following Ticket has been changed.<br />
By: Sandeep Vaidya<br />
On: Jan 11 2011  3:49PM<br />
With Ticket Number :10004</p>
<p>Of Department:Information Technology<br />
For Module:IT<br />
of Error Type:Customization<br />
Having Priority:Low<br />
With Short Text: Testing To All Changes.</p>
<p>Please do not respond to this mail, as it was automatically generated.</p>
<p>Best Wishes From<br />
System Administrator</p>
<p>But in email as<br />
Hello, The Following Ticket has been changed. By: Sandeep Vaidya On: Jan 11 2011 3:43PM With Ticket Number :10004 Of Department:Information Technology For Module:IT of Error Type:Customization Having Priority:Low With Short Text: Testing To All Changes. Please do not respond to this mail, as it was automatically generated. Best Wishes From System Administrator</p>
<p>Thanks in advance<br />
Please advise.</p>
<p>Pankaj Phukane</p>
]]></content:encoded>
	</item>
</channel>
</rss>
