<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Comment Feed for Channel 9 - Demo: Simplified Result Set Paging with SQL Server 2012 </title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/posts/SQL11UPD03-REC-02/rss"></atom:link>
	<image>
		<url>http://ak.channel9.msdn.com/ch9/5324/0375705a-a76f-4563-bca8-b7bc89bf5324/SQL11UPD03REC02_220.jpg</url>
		<title>Channel 9 - Demo: Simplified Result Set Paging with SQL Server 2012 </title>
		<link></link>
	</image>
	<description>This demo shows how to replace code that was based on CTEs and ROW_NUMBER() to provide query pagination in earlier versions of SQL Server, to use the new OFFSET and FETCH clauses provided by SQL Server 2012. Dr Greg Low SQL Server MVP and Microsoft RD </description>
	<link></link>
	<language>en</language>
	<pubDate>Fri, 24 May 2013 14:13:11 GMT</pubDate>
	<lastBuildDate>Fri, 24 May 2013 14:13:11 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<item>
		<title>Re: Demo: Simplified Result Set Paging with SQL Server 2012 </title>
		<description>
			<![CDATA[<p>Check out all the related decks, demos and labs at <a href="http://bit.ly/sql2012cookbook">http://bit.ly/sql2012cookbook</a>.</p><p>posted by rdoherty</p>]]>
		</description>
		<link>http://channel9.msdn.com/posts/SQL11UPD03-REC-02#c634668395077737694</link>
		<pubDate>Thu, 08 Mar 2012 21:38:27 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/posts/SQL11UPD03-REC-02#c634668395077737694</guid>
		<dc:creator>rdoherty</dc:creator>
	</item>
	<item>
		<title>Re: Demo: Simplified Result Set Paging with SQL Server 2012 </title>
		<description>
			<![CDATA[Quite often to do pagination effectively, you also need to have the total number of rows that the query would return without implementing the pagination.  The way to do this currently with MSSQL is to basically run the same query twice, but with one that doesn&#39;t use the WHERE clause to alter your result count.<br><br>MySQL lets you do this much more succinctly, for example.<br><br>SELECT SQL_CALC_FOUND_ROWS Column1, Column2, ColumnN, ...<br>FROM myTable<br>JOIN my2ndTable<br>JOIN ...<br>WHERE &#60;complex where clause&#62;<br>ORDER BY &#60;complex order by&#62;<br>LIMIT &#40;&#64;numItemsPerPage&#41;<br>OFFSET &#40;&#64;numItemsPerPage &#42; &#40;&#64;page - 1&#41;&#41;<br><br>-- 10 results &#40;if &#64;numItemsPerPage were 10&#41;<br><br>SELECT FOUND_ROWS&#40;&#41; as &#39;Total Rows&#39;<br><br>-- &#39;Total Rows&#39; &#61; 380<p>posted by Matthew</p>]]>
		</description>
		<link>http://channel9.msdn.com/posts/SQL11UPD03-REC-02#c634676001659843161</link>
		<pubDate>Sat, 17 Mar 2012 16:56:05 GMT</pubDate>
		<guid isPermaLink="true">http://channel9.msdn.com/posts/SQL11UPD03-REC-02#c634676001659843161</guid>
		<dc:creator>Matthew</dc:creator>
	</item>
</channel>
</rss>