Does anyone know how to use just a select statement to
1. return the first 250,000 records from a table, then
2. return the next 250,000 records from a table.
on subsequent runs of the sql script?
select top 100 * from table where id > 100 order by id
You'd get the next 100, assuming all your ids are present.
Of course you'd really want to get the max value from the first select and use that in your where clause.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.