<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>Fast ordered delete</title><link>http://blogs.msdn.com/sqlcat/archive/2009/05/21/fast-ordered-delete.aspx</link><description>We have a visit from MySpace database team in our lab this week. I have used this opportunity and asked Kevin Stephenson, MySpace’s Senior Database Developer, about “pain points” he encounters while doing his everyday job supporting SQL Server. He brought</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Fast ordered delete | Microsoft Share Point</title><link>http://blogs.msdn.com/sqlcat/archive/2009/05/21/fast-ordered-delete.aspx#9633156</link><pubDate>Thu, 21 May 2009 04:23:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9633156</guid><dc:creator>Fast ordered delete | Microsoft Share Point</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://microsoft-sharepoint.simplynetdev.com/fast-ordered-delete/"&gt;http://microsoft-sharepoint.simplynetdev.com/fast-ordered-delete/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Fast ordered delete</title><link>http://blogs.msdn.com/sqlcat/archive/2009/05/21/fast-ordered-delete.aspx#9633666</link><pubDate>Thu, 21 May 2009 14:57:31 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9633666</guid><dc:creator>Grumpy Old DBA</dc:creator><description>&lt;p&gt;such a simple solution - I've just been working around applying an update based upon a TOP which of course will not take an order by - this makes a simple way around it - thanks.&lt;/p&gt;
</description></item><item><title>DELETE TOP x rows avoiding a table scan</title><link>http://blogs.msdn.com/sqlcat/archive/2009/05/21/fast-ordered-delete.aspx#9635150</link><pubDate>Fri, 22 May 2009 16:11:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9635150</guid><dc:creator>SimonS Blog on SQL Server Stuff</dc:creator><description>&lt;p&gt;The simplest way to delete the top X rows is use to use a derived table. delete t1 from ( select top&lt;/p&gt;
</description></item><item><title>re: Fast ordered delete</title><link>http://blogs.msdn.com/sqlcat/archive/2009/05/21/fast-ordered-delete.aspx#9691471</link><pubDate>Wed, 03 Jun 2009 18:01:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9691471</guid><dc:creator>sunwei</dc:creator><description>&lt;p&gt;Another way is using CTE&lt;/p&gt;
&lt;p&gt;with d &amp;nbsp;as &lt;/p&gt;
&lt;p&gt;(&lt;/p&gt;
&lt;p&gt;select top (10000) a from t&lt;/p&gt;
&lt;p&gt;) &lt;/p&gt;
&lt;p&gt;delete from d;&lt;/p&gt;
</description></item><item><title>re: Fast ordered delete</title><link>http://blogs.msdn.com/sqlcat/archive/2009/05/21/fast-ordered-delete.aspx#9719777</link><pubDate>Wed, 10 Jun 2009 03:50:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9719777</guid><dc:creator>LuborK</dc:creator><description>&lt;p&gt;Thank you Simon and sunwei for you additions to my blog. Both derived tables and CTEs are great alternatives for views and I'm happy to see that they both work also in the case of the &amp;quot;efficient&amp;quot; delete!&lt;/p&gt;
</description></item></channel></rss>