locked
Efficiently Paging and Sorting Large Result Sets with SQL Server 2000 RRS feed

  • Question

  • User-2090449847 posted

    I've successfully implemented custom paging with a GridView following the steps in Scott Mitchell's tutorial and using the stored procedure from this excellent article, A More Efficient Method for Paging Through Large Result Sets.  (I had to add a line to the sproc that adds 1 to the startRowIndex).  The GridView paging speed for my 800,000+ record table is amazing!

    Now if only I could get sorting to work...

    I've tried to take Scott's tutorial on Sorting Custom Paged Data, which is aimed at SQL Server 2005, and modifying it to work with the stored procedure mention above, but so far I have had no luck.  Please, help me figure out custom sorting with SQL Server 2000.  Thanks!

    Friday, December 1, 2006 9:27 AM

Answers

  • User-2090449847 posted
    I found the answers I needed from this article on Paging Large Resultsets.  I've decided to abandon the RowCount method in favor of the slightly slower Cursor method, which allows easy sorting of columns that don't contain unique data.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 9, 2007 10:14 AM

All replies

  • User-2090449847 posted
    Has anyone figured out sorting a custom-paged GridView using SQL Server 2000?
    Monday, January 8, 2007 11:32 AM
  • User-2090449847 posted
    I found the answers I needed from this article on Paging Large Resultsets.  I've decided to abandon the RowCount method in favor of the slightly slower Cursor method, which allows easy sorting of columns that don't contain unique data.
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, January 9, 2007 10:14 AM