<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Scripts for “SQL Tricks: Insights from Microsoft IT”</title><link>http://blogs.technet.com/wardpond/archive/2008/11/11/scripts-for-sql-tricks-insights-from-microsoft-it.aspx</link><description>UPDATED 22 November 2008 with Code Gallery URL. A ZIP file of the scripts from the SQL Tricks: Insights from Microsoft IT presentation I’m giving in Barcelona this week is available for download here . The tricks will be familiar to long-time denizens</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Scripts for “SQL Tricks: Insights from Microsoft IT”</title><link>http://blogs.technet.com/wardpond/archive/2008/11/11/scripts-for-sql-tricks-insights-from-microsoft-it.aspx#3161030</link><pubDate>Fri, 28 Nov 2008 17:00:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3161030</guid><dc:creator>Jude</dc:creator><description>&lt;p&gt;Cool tricks!&lt;/p&gt;
&lt;p&gt;And XML string concatenation trick!&lt;/p&gt;
&lt;p&gt;I'm not too expirienced with SqlServer, but everyone knows this:&lt;/p&gt;
&lt;p&gt;declare &amp;nbsp;@a varchar(max)&lt;/p&gt;
&lt;p&gt;select @a=isnull(@a+', '+parentstring,parentstring) &lt;/p&gt;
&lt;p&gt;from &lt;/p&gt;
&lt;p&gt;parent p join child c on p.parentid=c.parentid where c.childid=2&lt;/p&gt;
&lt;p&gt;select @a&lt;/p&gt;
&lt;p&gt;which yeilds the same results.&lt;/p&gt;</description></item><item><title>re: Scripts for “SQL Tricks: Insights from Microsoft IT”</title><link>http://blogs.technet.com/wardpond/archive/2008/11/11/scripts-for-sql-tricks-insights-from-microsoft-it.aspx#3162227</link><pubDate>Mon, 01 Dec 2008 05:58:50 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3162227</guid><dc:creator>Ward Pond</dc:creator><description>&lt;p&gt;Hi Jude..&lt;/p&gt;
&lt;p&gt;You're correct; the syntax you nominate would give the same result as the XML concatenation trick. &amp;nbsp;However, your syntax is not ANSI standard, and is therefore not something that I'd encourage.&lt;/p&gt;
&lt;p&gt;The XML concatenation trick is fully ANSI compliant, which is why I prefer it.&lt;/p&gt;
&lt;p&gt;Thanks for your note!&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; -wp&lt;/p&gt;
</description></item><item><title>http://code.msdn.microsoft.com/wardpondteched2008</title><link>http://blogs.technet.com/wardpond/archive/2008/11/11/scripts-for-sql-tricks-insights-from-microsoft-it.aspx#3163536</link><pubDate>Wed, 03 Dec 2008 23:36:51 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3163536</guid><dc:creator>TrackBack</dc:creator><description /></item></channel></rss>