<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www2.sqlblog.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>The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx</link><description>Just over two weeks ago I posted the Grouped String Concatenation Challenge . A more difficult challenge than the last one I posted, partially in hopes that not as many people would submit solutions and it would be easier for me to judge. But alas, my</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12643</link><pubDate>Mon, 16 Mar 2009 01:14:25 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12643</guid><dc:creator>Dean</dc:creator><description>&lt;p&gt;I thought the deadline was midnight, Mar 16? My entry is almost ready to be emailed.&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12644</link><pubDate>Mon, 16 Mar 2009 01:36:01 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12644</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Midnight, GMT. &amp;nbsp;It's now 1:35 a.m.&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12646</link><pubDate>Mon, 16 Mar 2009 07:23:35 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12646</guid><dc:creator>Peso</dc:creator><description>&lt;p&gt;Maybe a culture issue?&lt;/p&gt;
&lt;p&gt;For example, when we in Sweden say midnight the 16th of March, we mean 24:00 (23:59:59 + 1 second).&lt;/p&gt;
&lt;p&gt;I believe Adam meant 00:00:00 the 16th of March (12:00 AM).&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12650</link><pubDate>Mon, 16 Mar 2009 12:19:23 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12650</guid><dc:creator>MontyMole</dc:creator><description>&lt;p&gt;Are they going to be tested to check that they work correctly with data with an &amp;amp; in them (the sample data doesn't have any) or do they just have to work with the sample data?&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12651</link><pubDate>Mon, 16 Mar 2009 13:39:36 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12651</guid><dc:creator>Virgil Rucsandescu</dc:creator><description>&lt;p&gt;Probably Adam wrote a script to compare each result set with the required result, so probably &amp;nbsp;each solution sent by us will be run against the data in AdventureWorks and if the result doesn't fit exactly with the required data set, then it's out of competition ...&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12652</link><pubDate>Mon, 16 Mar 2009 13:39:40 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12652</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;No, I won't be checking for entitization problems, but perhaps I'll give a bonus to those that did include workarounds in their solutions (very few).&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12654</link><pubDate>Mon, 16 Mar 2009 16:48:24 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12654</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Alright, here's the deal: Three people have now e-mailed me saying they misunderstood the meaning of &amp;quot;midnight&amp;quot;, and even though I think it's pretty clear I'm going to be nice about it. &amp;nbsp;I'll allow entries through 11:59 p.m. GMT today. But here's the catch: I am going to judge these late entries a bit harder than the rest, because you've had more time and, perhaps, the chance to read about how I'll judge the competition. So anyone submitting late had better send me something really, really good if you want to be a competitor!&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12673</link><pubDate>Mon, 16 Mar 2009 22:33:22 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12673</guid><dc:creator>virgilrucsandescu</dc:creator><description>&lt;p&gt;I made my query with ~ 27% faster, but I suppose it is not honest to re-send it now ... Hopefully the fastest query in this challenge will be even faster than what I have now ;-)&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12676</link><pubDate>Mon, 16 Mar 2009 23:14:19 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12676</guid><dc:creator>RBArryYoung</dc:creator><description>&lt;p&gt;&amp;quot;Next I will run each query twice, and will eliminate any query that doesn't run in less than four seconds on my notebook&amp;quot;&lt;/p&gt;
&lt;p&gt;Umm, is it OK to ask about your Notebook's configuration? &amp;nbsp;That'll tell me real fast if I'm in or out... &amp;nbsp;:)&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12733</link><pubDate>Wed, 18 Mar 2009 10:39:48 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12733</guid><dc:creator>Peso</dc:creator><description>&lt;p&gt;It's a good thing I didn't send my suggestion that only required 60k reads for the entire solution!&lt;/p&gt;
&lt;p&gt;It runs for 30 seconds... :-)&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12743</link><pubDate>Wed, 18 Mar 2009 15:32:49 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12743</guid><dc:creator>Virgil Rucsandescu</dc:creator><description>&lt;p&gt;Strange... I think I have more reads even in &amp;quot;SET STATISTICS IO&amp;quot; info (my profiler is crazy - it shows ~ 100 times more reads than the stats info) and my query runs in ~ 3 sec (elapsed time). But my desktop is a quad core, I suppose it will need more on a notebook - so I am probably out of the competition. I am really curious if there is a non - FOR XML PATH('') solution that is very fast ...&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12746</link><pubDate>Wed, 18 Mar 2009 16:31:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12746</guid><dc:creator>RBArryYoung</dc:creator><description>&lt;p&gt;I fell compelled to point out that comparing entitized XML solutions to corrected (non-entitized) solutions is not very fair since fixning the entitization problems adds almost 30% CPU overhead.&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12747</link><pubDate>Wed, 18 Mar 2009 17:03:03 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12747</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Well it's not like I asked anyone to fix that problem in the code, and I pointed out in the original post that performance should be the main concern. &amp;nbsp;A lot of people, though, insist upon putting their own spin on things, for better or for worse. &amp;nbsp;For example, one person sent me a solution where he used ROUND to take all of the numbers to two digit scale. &amp;nbsp;I don't recall asking for that, and his solution was immediately kicked out for not matching the posted sample data. &amp;nbsp;I just don't get peoples' thought processes sometimes... &lt;/p&gt;
&lt;p&gt;Your submission, which did deal with entitization (as I'm sure you're well aware &amp;lt;g&amp;gt;), made it through the first round. &amp;nbsp;We'll see whether it scales under load. &amp;nbsp;It will be an interesting test...&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12751</link><pubDate>Wed, 18 Mar 2009 19:23:43 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12751</guid><dc:creator>Peso</dc:creator><description>&lt;p&gt;To keep the suspense, will you post the number of queries passing each test?&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12752</link><pubDate>Wed, 18 Mar 2009 19:27:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12752</guid><dc:creator>Peso</dc:creator><description>&lt;p&gt;SET STATISTICS IO has a bug when MERGE JOIN eller HASH JOIN is used.&lt;/p&gt;
&lt;p&gt;See this connect issue&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=387326&amp;amp;wa=wsignin1.0"&gt;https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=387326&amp;amp;wa=wsignin1.0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Using SQL Profiler however displays the total number of reads.&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12771</link><pubDate>Thu, 19 Mar 2009 12:37:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12771</guid><dc:creator>George Palacean</dc:creator><description>&lt;p&gt;Adam, the original post states that &amp;quot;Entries will be judged first and foremost on correctness, then on a combination of performance, readability, and ability to apply your technique as a general pattern.&amp;quot;&lt;/p&gt;
&lt;p&gt;So it's not performance the main concern, but correctness (here I would include de-entitizing XML special characters, otherwise the output is simply incorrect)&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12778</link><pubDate>Thu, 19 Mar 2009 17:43:01 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12778</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;George: The only thing I'm going to look at with regard to correctness is whether the output meets the output that my own query produces. I will not eliminate any queries that fail to deal with entitization, because the data is one of the givens of the contest and the data has no such issues.&lt;/p&gt;
&lt;p&gt;That said, I don't think it will matter anyway from a performance point of view. &amp;nbsp;I just ran some tests on this end and despite the fact that STATISTICS TIME is reporting slightly higher CPU utilization for FOR XML PATH queries that properly deal with the entitization, I'm seeing no difference in terms of performance (testing using 100-thread, 100-iteration SQLQueryStress runs).&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12783</link><pubDate>Thu, 19 Mar 2009 23:41:59 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12783</guid><dc:creator>Roman</dc:creator><description>&lt;p&gt;Well, it seems strange - even with [comment()] trick (which is fast but hardly general solution) I find not so small overhead, forget about &amp;quot;.value&amp;quot;.&lt;/p&gt;
&lt;p&gt;I'm realy looking forward to see the best solution. I'v already &amp;nbsp;made 10% faster query myself :( - pity that I spotted your challange so late and had only 2 hours.&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12785</link><pubDate>Fri, 20 Mar 2009 02:49:05 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12785</guid><dc:creator>Linchi Shea</dc:creator><description>&lt;p&gt;Adam;&lt;/p&gt;
&lt;p&gt;I'd suggest that while you continue your evaluation and your process of picking a best solution, simply post all the sulotions and let the folks see what solutions have been produced and learn from others. Performance is but one of many dimensions, and people can learn a heck a lot just by looking at what angels the problem is being appraoched.&lt;/p&gt;
&lt;p&gt;I don't believe you said anything about the folks not posting their solutions after the deadline. So the other alternative is for people to post their own solutions here, if they so choose to (and in case they don't want to post their solutions for whatever reason).&lt;/p&gt;
&lt;p&gt;I for one am interested in seeing all the other solutions.&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12800</link><pubDate>Fri, 20 Mar 2009 14:15:26 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12800</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Linchi: Fair enough; I will package up all of the solutions I received (unless someone e-mails me and asks me not to), and post it along with the results.&lt;/p&gt;
&lt;p&gt;Roman: You just taught me a new one. &amp;nbsp;I had no clue about that &amp;quot;comment&amp;quot; trick. &amp;nbsp;That is fantastic, and I'm going to go modify my Who is Active? script to use it instead of FOR XML PATH for the query output. &amp;nbsp;Thanks for the tip!&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12802</link><pubDate>Fri, 20 Mar 2009 14:52:33 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12802</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;... or not -- it seems that the comment() trick has a major limitation:&lt;/p&gt;
&lt;p&gt;select ' --- ' as [comment()]&lt;/p&gt;
&lt;p&gt;for xml path('')&lt;/p&gt;
&lt;p&gt;Result:&lt;/p&gt;
&lt;p&gt;Msg 9322, Level 16, State 2, Line 3&lt;/p&gt;
&lt;p&gt;Two consecutive '-' can only appear in a comment constructor if they are used to close the comment ('--&amp;gt;').&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12803</link><pubDate>Fri, 20 Mar 2009 16:04:27 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12803</guid><dc:creator>Roman</dc:creator><description>&lt;p&gt;as I said it's hardly general - there are some limitations, but:&lt;/p&gt;
&lt;p&gt;Replace('&amp;lt;!-- -- this can help -- --&amp;gt;','-',Char(150))&lt;/p&gt;
&lt;p&gt;Replace('&amp;lt;!-- -- or this -- --&amp;gt;','--',Char(150)+Char(150))&lt;/p&gt;
&lt;p&gt;(reverse back if this change is a problem)&lt;/p&gt;
&lt;p&gt;probably this leads to a little ugly looking code, but still could be faster then .value&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12818</link><pubDate>Fri, 20 Mar 2009 17:32:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12818</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Might be faster than .value, but REPLACE can be very slow for big strings so that's very much an open question. &amp;nbsp;Alas, not at all useful for my needs with my Who is Active? script, which is takes advantage of the fact that SSMS lets you click on XML values to pop them up nicely formatted in a new tab. &amp;nbsp;Entitization definitely bites me there and I was hoping that this comment() thing will work, but obviously most SQL has some form of comments so that is not going to be usable... &lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12821</link><pubDate>Fri, 20 Mar 2009 20:19:30 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12821</guid><dc:creator>Roman</dc:creator><description>&lt;p&gt;stupid me: [processing-instruction(a)] is much better then [comment()]; of course 2xreplace have still to be made&lt;/p&gt;
&lt;p&gt;in this particular case for sample data .value is 50% slower&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12822</link><pubDate>Fri, 20 Mar 2009 20:36:45 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12822</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Wow, that looks VERY promising! &amp;nbsp;But how did you find that? &amp;nbsp;Is there a list somewhere of different commands that can be used in square brackets with FOR XML?&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12826</link><pubDate>Fri, 20 Mar 2009 21:35:32 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12826</guid><dc:creator>Roman</dc:creator><description>&lt;p&gt;BOL :); although at first I tried [cdata()] by intuition - it didn't work - so I've checked the documentation.&lt;/p&gt;
&lt;p&gt;Anyway - I have quite diffrent result using your test script on my dev maching (i7)&lt;/p&gt;
&lt;p&gt;.value - 375ms; [processing-instruction(a)] 1179 - so on my i7 it is 3x slower, not faster (from SET &lt;/p&gt;
&lt;p&gt;Previous result was with my challage script (a little modfifed) with your SQLQueryStress (this tool looks promising :) btw; found 1 problem: allowed query length seems to be too low - couldn't accomodate query with use plan option) 10 iterations, 100 threads&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12827</link><pubDate>Fri, 20 Mar 2009 21:51:36 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12827</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;Ah, notice that I took down the script to play with it some more :-)&lt;/p&gt;
&lt;p&gt;I found that converting to VARCHAR(MAX), rather than relying on the implicit conversion to NVARCHAR(MAX), makes processing-instruction() much faster (which makes perfect sense -- less data to do the REPLACEs on).&lt;/p&gt;
&lt;p&gt;Regarding SQLQueryStress, I highly recommend a stored procedure for that case. &amp;nbsp;You could, if you don't want to create a permanent stored procedure, create a temporary global stored procedure first and test against that. &amp;nbsp;Sending all of that data to SQL Server on every iteration is going to stress more than just the query itself -- it's going to stress the network, the query parser, etc.&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12828</link><pubDate>Fri, 20 Mar 2009 22:31:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12828</guid><dc:creator>Roman</dc:creator><description>&lt;p&gt;Thanks for the tip - you are of course right - it wouldn't make sense to test that way - I should have realized that earlier.&lt;/p&gt;
&lt;p&gt;One observation about your taken down script: datalength takes much longer with /for xml path('')/ then with /for xml path(''),type/. 882ms - 369 ms;&lt;/p&gt;
&lt;p&gt;besides for me execution plan shows costs wich are in contradiction to execution times &lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#12878</link><pubDate>Tue, 24 Mar 2009 09:59:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:12878</guid><dc:creator>Roman Nowak</dc:creator><description>&lt;p&gt;50% faster was not enough for me ;)&lt;/p&gt;
&lt;p&gt;SQLQueryStress tool (10 iteration, 100 threads) (min:sec)&lt;/p&gt;
&lt;p&gt;v1 (ent off)	4:41&lt;/p&gt;
&lt;p&gt;v1 (ent on)	9:50* (.value method)&lt;/p&gt;
&lt;p&gt;v1a (ent off)	4:11&lt;/p&gt;
&lt;p&gt;v1a (ent on)	4:32* (pi method)&lt;/p&gt;
&lt;p&gt;from the very begining I was ure I can do better - had to prove it to myself.&lt;/p&gt;
&lt;p&gt;besides it was fun and I've learned sth.&lt;/p&gt;
&lt;p&gt;(after some limited test it seems pi is faster than .value - depending on the string size from &amp;gt;3x to 5% - there are some limitation but not that big)&lt;/p&gt;
</description></item><item><title>Adam Machanic : Who is Active? v8.40 - Now With Delta Power!</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#13010</link><pubDate>Mon, 30 Mar 2009 16:53:41 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13010</guid><dc:creator>Adam Machanic : Who is Active? v8.40 - Now With Delta Power!</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://sqlblog.com/blogs/adam_machanic/archive/2009/03/30/who-is-active-v8-40-now-with-delta-power.aspx"&gt;http://sqlblog.com/blogs/adam_machanic/archive/2009/03/30/who-is-active-v8-40-now-with-delta-power.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#13038</link><pubDate>Wed, 01 Apr 2009 08:16:04 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13038</guid><dc:creator>Peso</dc:creator><description>&lt;p&gt;Deadline has occured, and while Adam finishes his tests I decided to publish my suggestion here&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://weblogs.sqlteam.com/peterl/archive/2009/02/28/Competition.aspx"&gt;http://weblogs.sqlteam.com/peterl/archive/2009/02/28/Competition.aspx&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#13446</link><pubDate>Wed, 22 Apr 2009 15:30:34 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:13446</guid><dc:creator>mjswart</dc:creator><description>&lt;p&gt;(april 22) Any word on the results? I'm very curious :-)&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#14196</link><pubDate>Thu, 21 May 2009 17:19:12 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14196</guid><dc:creator>mjswart</dc:creator><description>&lt;p&gt;(may 21) still curious :-)&lt;/p&gt;
</description></item><item><title>re: The Grouped String Concatenation Challenge is Closed</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#14324</link><pubDate>Thu, 28 May 2009 18:53:51 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14324</guid><dc:creator>Henrik Sjang Davidsen</dc:creator><description>&lt;p&gt;I'm quite curious as well&lt;/p&gt;
</description></item><item><title>Grouped String Concatenation: ... The Winner Is ...</title><link>http://www2.sqlblog.com/blogs/adam_machanic/archive/2009/03/15/the-grouped-string-concatenation-challenge-is-closed.aspx#14362</link><pubDate>Sun, 31 May 2009 20:58:02 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:14362</guid><dc:creator>Adam Machanic</dc:creator><description>&lt;p&gt;After weeks of putting it off, I finally found the time and spent the last day and a half judging the&lt;/p&gt;
</description></item></channel></rss>