﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2005 / Development  / Qry / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 06:30:50 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Qry</title><link>http://www.sqlservercentral.com/Forums/Topic1403502-145-1.aspx</link><description>HiDifficult without a little more information however this may point you in the right direction[code="sql"] declare @table as table (id int)  INSERT INTO @table SELECT 100 UNION ALLSELECT 101 UNION ALLSELECT 102 UNION ALLSELECT 103 UNION ALL SELECT 104    SELECT STUFF((SELECT ',' + CAST(id AS VARCHAR (3))  FROM @table t1  ORDER BY t1.id  FOR XML PATH('')),1,1,'')[/code]Andy</description><pubDate>Mon, 07 Jan 2013 03:36:25 GMT</pubDate><dc:creator>Andy Hyslop</dc:creator></item><item><title>Qry</title><link>http://www.sqlservercentral.com/Forums/Topic1403502-145-1.aspx</link><description>In my table i have following result setssno101102103105106107i want following structures101,102,103,105,106,107</description><pubDate>Mon, 07 Jan 2013 02:55:28 GMT</pubDate><dc:creator>vs.satheesh</dc:creator></item></channel></rss>