1

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

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
pradeep
  • 1,047
  • 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
  • 95,573
  • 20
  • 147
  • 170