declare @pageNum int set @pageNum=1 declare @pageSize int set @pageSize=10 select * from (select ROW_NUMBER() over(order by a_CreationTime desc) as rowNum,* from td_Articles) as c where rowNum between((@pageNum-1) * @pageSize+1) and @pageNum * @pageSize