I previously wrote about a few of the new features in SQL 2005 and how they can be used to solve some old "classic" SQL problems very easily, and I thought I'd briefly discuss a few more.
Read more →
(UPDATE:If you are using SQL Server 2005 or above, there is a much easier and more efficient wayto page your data.)
Here is a completely dynamic version of my paging technique in the form of a stored procedure.
Read more →
Here's the most efficient way that I can think of to return rows @a through @b from a table or query, when each row is ordered and can be uniquely identified by a set of columns.
Read more →