This solution works only if the select contains the Order By ID clause,
which is not always possible.
Generally speaking, we don't have a clean sql statement solution using Sql
Server (as using Oracle for example); only with stored procedures.
The ADO.NET 2.0 will have ExecutePageReader to solve this problem. I heard
that it use server side cursors, which doesn't smell like a good solution
for me.
Dumitru
Miha Markic said:
Hi Paul,
You mean from database?
I would go with a WHERE clause where I would specify the first record to be
fetched, like ID > 100 and a TOP keyword in front
Assuming SQLServer is the database.
--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com
Paul Johnson said:
Anyone know if there is a way to select a range of rows. Much the same as
using the Select Top 10 From ....
Something Like Select Range 10 to 20 FROM .... ?
I have searched and searched for something that will do this but can find
anything