<?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>Database Programming: Set-Based Update -- Hugo's Syntax Outperforms Shaun's; Ward Tweaks Hugo's Syntax Even Further</title><link>http://blogs.technet.com/wardpond/archive/2006/09/20/database-programming-set-based-update-hugo-s-syntax-outperforms-shaun-s-ward-tweaks-hugo-s-syntax-even-further.aspx</link><description>A long post continuing last night's discussion regarding the generation of 1M GUIDs. I'm not sure I'd download this one to your PDA...</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Database Programming: Set-Based Update -- Hugo's Syntax Outperforms Shaun's; Ward Tweaks Hugo's Syntax Even Further</title><link>http://blogs.technet.com/wardpond/archive/2006/09/20/database-programming-set-based-update-hugo-s-syntax-outperforms-shaun-s-ward-tweaks-hugo-s-syntax-even-further.aspx#457905</link><pubDate>Thu, 21 Sep 2006 13:16:14 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:457905</guid><dc:creator>Denis the SQL Menace</dc:creator><description>How about the next challenge is to return all 78498 prime numbers between 1 and 1000000?
&lt;br&gt;</description></item><item><title>Ward Pond's SQL Server blog : Database Programming: Denis' Prime Number Challenge</title><link>http://blogs.technet.com/wardpond/archive/2006/09/20/database-programming-set-based-update-hugo-s-syntax-outperforms-shaun-s-ward-tweaks-hugo-s-syntax-even-further.aspx#458405</link><pubDate>Sat, 23 Sep 2006 12:49:37 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:458405</guid><dc:creator>Ward Pond's SQL Server blog : Database Programming: Denis' Prime Number Challenge</dc:creator><description>PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/wardpond/archive/2006/09/23/458344.aspx"&gt;http://blogs.technet.com/wardpond/archive/2006/09/23/458344.aspx&lt;/a&gt;</description></item><item><title>re: Database Programming: Set-Based Update -- Hugo's Syntax Outperforms Shaun's; Ward Tweaks Hugo's Syntax Even Further</title><link>http://blogs.technet.com/wardpond/archive/2006/09/20/database-programming-set-based-update-hugo-s-syntax-outperforms-shaun-s-ward-tweaks-hugo-s-syntax-even-further.aspx#458518</link><pubDate>Sun, 24 Sep 2006 00:34:45 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:458518</guid><dc:creator>Hugo Kornelis</dc:creator><description>Hi Ward,
&lt;br&gt;
&lt;br&gt;What surprises me, is that the join of two 1,000-row tables outperforms the version with the single 1,000,000-row setbuilder table. I would have expected the latter to be the fastest. Have you already tried a three-way join of three 100-row tables?
&lt;br&gt;
&lt;br&gt;(I would have tried it myself, but I can't; I'm busy writing a blog entry with my response to Denis' prime number challenge. I'll put it up shortly.)
&lt;br&gt;
&lt;br&gt;Best, Hugo</description></item><item><title>The prime number challenge – great waste of time!</title><link>http://blogs.technet.com/wardpond/archive/2006/09/20/database-programming-set-based-update-hugo-s-syntax-outperforms-shaun-s-ward-tweaks-hugo-s-syntax-even-further.aspx#458524</link><pubDate>Sun, 24 Sep 2006 01:56:01 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:458524</guid><dc:creator>SELECT Hints, Tips, Tricks FROM Hugo Kornelis WHERE RDBMS = 'SQL Server'</dc:creator><description>No sane person would even consider using SQL Server to construct a list of prime numbers. So just to...</description></item><item><title>re: Explicit does seem to beat CTE in my experience as well</title><link>http://blogs.technet.com/wardpond/archive/2006/09/20/database-programming-set-based-update-hugo-s-syntax-outperforms-shaun-s-ward-tweaks-hugo-s-syntax-even-further.aspx#458700</link><pubDate>Sun, 24 Sep 2006 22:52:30 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:458700</guid><dc:creator>Marc Brooks</dc:creator><description>I discovered this when playing with the CTE version of date-range generation. &amp;nbsp;What I ended up with is something that seems much faster and generates a very simple query plan by doing explicit date math. Check out this: &lt;a rel="nofollow" target="_new" href="http://musingmarc.blogspot.com/2006/07/need-date-range-in-sql-without-filling.html"&gt;http://musingmarc.blogspot.com/2006/07/need-date-range-in-sql-without-filling.html&lt;/a&gt;</description></item><item><title>Ward Pond's SQL Server blog : Database Programming: Prime Number Methodology</title><link>http://blogs.technet.com/wardpond/archive/2006/09/20/database-programming-set-based-update-hugo-s-syntax-outperforms-shaun-s-ward-tweaks-hugo-s-syntax-even-further.aspx#461656</link><pubDate>Wed, 04 Oct 2006 04:36:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:461656</guid><dc:creator>Ward Pond's SQL Server blog : Database Programming: Prime Number Methodology</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://blogs.technet.com/wardpond/archive/2006/10/03/Database-Programming_3A00_-Prime-Number-Methodology.aspx"&gt;http://blogs.technet.com/wardpond/archive/2006/10/03/Database-Programming_3A00_-Prime-Number-Methodology.aspx&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>