Tuesday, April 23, 2013

Efficiently Paging Through Large Amounts of Data

Get Sql Records With Row Index
***********************************

You can reduce your record traffic between process

DECLARE @start INT SET @start=2
DECLARE @end INT SET @end=3

SELECT us.UserID
FROM (SELECT ROW_NUMBER() OVER (ORDER BY UserID) AS Row, UserID
     FROM Users.[User]) us
WHERE Row > @start AND Row <= (@start + @end)


No comments:

Post a Comment

Complete Authentication System in ASP.NET Core using JWT

JWT (JSON Web Token) authentication is widely used for securing APIs in modern applications. In this article, we will build a complete authe...