Just a quick question:
How would one do result pagination in SQL Server (2000), similar to the 'LIMIT' method using MySQL??
I've tossed around the idea of using a temporary table, then deleting TOP n rows, then returning the resulting TOP n rows from the temp table (in a stored procedure of course). Also discussed possibility of using cursors.
Just wondering if anyone knows of a simple and/or elegant way of getting one 'page' of records in a single query, or something cleaner than what I described above.