Hello,
In Sql Server 2008, many options are available for database paging via stored procedure. For example, see here and here.
OPTIONS:
- ROW_NUMBER() function
- ROWCOUNT
- CURSORS
- temporary tables
- Nested SQL queries
- OTHERS
Paging using ROW_NUMBER() is known to have performance issues:
Please advise, which paging method has the best performance (for large tables with JOINs) ?
Please also provide links to relevant article(s), if possible.
Thank You.