<?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: SQL Tip/Trick: Retrieving Records as a Comma-Delimited Value Using FOR XML and STUFF</title>
	<atom:link href="http://www.devexpertise.com/2009/04/14/sql-tiptrick-retrieving-records-as-a-comma-delimited-value-using-for-xml-and-stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devexpertise.com/2009/04/14/sql-tiptrick-retrieving-records-as-a-comma-delimited-value-using-for-xml-and-stuff/</link>
	<description>Practical tips and tricks for all things .NET, SharePoint, Silverlight, InfoPath, and general application development.</description>
	<lastBuildDate>Wed, 12 May 2010 15:57:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: DevExpert</title>
		<link>http://www.devexpertise.com/2009/04/14/sql-tiptrick-retrieving-records-as-a-comma-delimited-value-using-for-xml-and-stuff/comment-page-1/#comment-1123</link>
		<dc:creator>DevExpert</dc:creator>
		<pubDate>Sat, 15 Aug 2009 14:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/04/14/sql-tiptrick-retrieving-records-as-a-comma-delimited-value-using-for-xml-and-stuff/#comment-1123</guid>
		<description>JC, maybe I&#039;m missing something simple, but your example won&#039;t create a single, comma-delimited value, it will return all rows with a comma at the end of them.  The purpose of this was to show how to get a single value that is a comma-delimited aggregation of the selected rows.</description>
		<content:encoded><![CDATA[<p>JC, maybe I&#8217;m missing something simple, but your example won&#8217;t create a single, comma-delimited value, it will return all rows with a comma at the end of them.  The purpose of this was to show how to get a single value that is a comma-delimited aggregation of the selected rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JC</title>
		<link>http://www.devexpertise.com/2009/04/14/sql-tiptrick-retrieving-records-as-a-comma-delimited-value-using-for-xml-and-stuff/comment-page-1/#comment-1098</link>
		<dc:creator>JC</dc:creator>
		<pubDate>Tue, 30 Jun 2009 22:16:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.devexpertise.com/2009/04/14/sql-tiptrick-retrieving-records-as-a-comma-delimited-value-using-for-xml-and-stuff/#comment-1098</guid>
		<description>IT LOOKS COMPLICATED!

DECLARE @str AS VARCHAR(MAX)
SET @str = &#039;&#039;
select @str  = IsNull(City,&#039;&#039;) + &#039;,&#039; 
from Cities where State = &#039;New York&#039; 

SELECT @str

--AND MAYBE COALLESCE</description>
		<content:encoded><![CDATA[<p>IT LOOKS COMPLICATED!</p>
<p>DECLARE @str AS VARCHAR(MAX)<br />
SET @str = &#8221;<br />
select @str  = IsNull(City,&#8221;) + &#8216;,&#8217;<br />
from Cities where State = &#8216;New York&#8217; </p>
<p>SELECT @str</p>
<p>&#8211;AND MAYBE COALLESCE</p>
]]></content:encoded>
	</item>
</channel>
</rss>
