Hi,
What is SQL paging? Please explain with example.
Thanks.
SQL paging
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ankit Shivnakr87 reputationPosted Jan 16, 2012, 7:33 PM EST
Plz refer these link :
http://www.codeguru.com/csharp/.net/net_data/article.php/c19611
http://blog.sqlauthority.com/tag/sql-paging/
Jignesh TrivediRank #16 · 50.3K reputationPosted Jan 16, 2012, 10:32 PM EST
SQL paging is crate pagination (load only required data) using SQL server or SQl query.
if you use direct query on database using row number() function.
for example
SELECT *
FROM (SELECT ROW_NUMBER() OVER(ORDER BY person) AS
rownum, person, income FROM Salaries) AS Salaries1
WHERE rownum >= 5 AND rownum <= 9
http://www.codeguru.com/csharp/.net/net_data/article.php/c19611
If you use LINQ then use skip and take.
(from c in Customers
select new {
c.City,
c.ContactName
}).Skip(0).Take(5)
http://weblogs.asp.net/rajbk/archive/2009/09/30/linq-to-sql-paging-gotcha.aspx
hope this help.
Dhaval PatelRank #1,023 · 1.9K reputationPosted Jan 16, 2012, 10:40 PM EST
Please refer below link for paging using sql server
http://www.c-sharpcorner.com/Blogs/7056/paging-using-sql-query-in-gridviewrepeater.aspx
Thanks & Regards
Dhaval Patel