I want to take le's say ten records but skip the first 20? I know how to do that in linq, but how to do it in TSqL.
In linq would be something like this:
qp = dbContext.Products.Where(p => p.Active).OrderBy(p => p.Name)
.Skip((curPage - 1) * prodPerPage).Take(prodPerPage);