Hi,
What is SQL paging? Please explain with example.
Thanks.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Dhaval PatelPosted Jan 17, 2012, 3:40 AM
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
Jignesh TrivediPosted Jan 17, 2012, 3:32 AM
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.
Ankit ShivnakrPosted Jan 17, 2012, 12:33 AM
Plz refer these link :
http://www.codeguru.com/csharp/.net/net_data/article.php/c19611
http://blog.sqlauthority.com/tag/sql-paging/