How I can implement paging in SQL Server database it has no LIMT keyword like mysql?
A:
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
2010-08-23 10:40:11
This only gets the first page. You need to use the ROW_NUMBER function
Tim
2010-08-23 10:41:43