If you are looking for a way to present on a web page, for example, data blocks ..
Try
WITH Ordered AS ( SELECT *, ROW_NUMBER() OVER (ORDER BY ServerName) AS 'RowNumber' FROM systems ) SELECT * FROM Ordered WHERE RowNumber BETWEEN 11 AND 20
With this code, I was able to offer the user the first 10, then the second block of 10 (11 - 20) and so on.
Now a word of caution. If you change the data often, this may suffer, as this will give you the first 10 lines (or lines 50 to 60) during the execution of the request.
So if new data is added that is discarded from the list, be careful. If, for example, you are browsing the list of computers, and someone is adding a new server named "AAA", and you are browsing the middle of the list, what was item 50 in one request may be item 49 in the second request. (I hope I have not confused this even more).
source share