<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Mimic The MySQL LIMIT Feature in Microsoft SQL Server</title>
	<atom:link href="http://www.tech-recipes.com/rx/1868/mimic_the_mysql_limit_feature_in_microsoft_sql_server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-recipes.com/rx/1868/mimic_the_mysql_limit_feature_in_microsoft_sql_server/</link>
	<description>Computer and technology tutorials and guides</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:22:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alex Peta</title>
		<link>http://www.tech-recipes.com/rx/1868/mimic_the_mysql_limit_feature_in_microsoft_sql_server/comment-page-1/#comment-41585</link>
		<dc:creator>Alex Peta</dc:creator>
		<pubDate>Mon, 16 Aug 2010 20:55:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-41585</guid>
		<description>Hi, so the code that works is : 


WITH ORDERED AS (
SELECT ROW_NUMBER() OVER (ORDER BY category_id) AS RowNumber, category_id, NAME FROM [categories]
)
SELECT category_id,name FROM ORDERED WHERE RowNumber &gt;= 3 AND RowNumber </description>
		<content:encoded><![CDATA[<p>Hi, so the code that works is : </p>
<p>WITH ORDERED AS (<br />
SELECT ROW_NUMBER() OVER (ORDER BY category_id) AS RowNumber, category_id, NAME FROM [categories]<br />
)<br />
SELECT category_id,name FROM ORDERED WHERE RowNumber &gt;= 3 AND RowNumber</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucian Oancia</title>
		<link>http://www.tech-recipes.com/rx/1868/mimic_the_mysql_limit_feature_in_microsoft_sql_server/comment-page-1/#comment-40006</link>
		<dc:creator>Lucian Oancia</dc:creator>
		<pubDate>Mon, 21 Jun 2010 13:45:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-40006</guid>
		<description>i think it is enough with between, and without the temp. U cand scroll with the Between clause through an ID column. </description>
		<content:encoded><![CDATA[<p>i think it is enough with between, and without the temp. U cand scroll with the Between clause through an ID column.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.tech-recipes.com/rx/1868/mimic_the_mysql_limit_feature_in_microsoft_sql_server/comment-page-1/#comment-34929</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 05 Oct 2009 17:56:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-34929</guid>
		<description>Sure looks more like MySQL&#039;s limit, but when you have a huge table with millions of records, it takes ages to return the desired rows.</description>
		<content:encoded><![CDATA[<p>Sure looks more like MySQL&#8217;s limit, but when you have a huge table with millions of records, it takes ages to return the desired rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name</title>
		<link>http://www.tech-recipes.com/rx/1868/mimic_the_mysql_limit_feature_in_microsoft_sql_server/comment-page-1/#comment-32610</link>
		<dc:creator>Name</dc:creator>
		<pubDate>Thu, 13 Aug 2009 16:38:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-32610</guid>
		<description>WITH temp AS
(SELECT *, ROW_NUMBER() OVER (ORDER BY OrderColumn) AS rownum
from MyTable)
SELECT * FROM temp WHERE rownum BETWEEN 0 AND 10

Is better. </description>
		<content:encoded><![CDATA[<p>WITH temp AS<br />
(SELECT *, ROW_NUMBER() OVER (ORDER BY OrderColumn) AS rownum<br />
from MyTable)<br />
SELECT * FROM temp WHERE rownum BETWEEN 0 AND 10</p>
<p>Is better.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirill</title>
		<link>http://www.tech-recipes.com/rx/1868/mimic_the_mysql_limit_feature_in_microsoft_sql_server/comment-page-1/#comment-30954</link>
		<dc:creator>Kirill</dc:creator>
		<pubDate>Wed, 10 Jun 2009 00:10:00 +0000</pubDate>
		<guid isPermaLink="false">guid-fix-me!#comment-30954</guid>
		<description>Doesn&#039;t work for some reason... Logic is there, but pulls out always the first 10, even if you say you want between 20-30. Any ideas, why this concept isn&#039;t working?</description>
		<content:encoded><![CDATA[<p>Doesn&#8217;t work for some reason&#8230; Logic is there, but pulls out always the first 10, even if you say you want between 20-30. Any ideas, why this concept isn&#8217;t working?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached (User agent is rejected)
Database Caching 2/12 queries in 0.801 seconds using memcached
Object Caching 329/334 objects using memcached

Served from: www.tech-recipes.com @ 2012-02-10 10:24:26 -->
