1

How I can implement paging in SQL Server database it has no LIMT keyword like mysql?

marc_s
  • 704,970
  • 168
  • 1,303
  • 1,425
pradeep
  • 1,027
  • 3
  • 20
  • 24
  • 1
    possible duplicate of [Paging SQL Server 2005 Results](http://stackoverflow.com/questions/2840/paging-sql-server-2005-results) –  Aug 23 '10 at 11:34

2 Answers2

0

You can also use row_number()

vaso
  • 213
  • 2
  • 9
-1

It doesn't use LIMIT, but you can use TOP:

SELECT TOP 10 *
FROM foo
WHERE whateverPagingID >= 650 /* or whatever the last page started with */
ORDER BY pagingID;
Dave Markle
  • 92,195
  • 20
  • 143
  • 169