Hi All, i have small doubt about a stored writing as a combination of paging,sorting and searching.
For example i have 2 tables like
users-user id,username,password,region id
regions-regionid,region name
I am trying the stored procedure for searching and sorting.But i did not understand the paging.
The stored proc having parameters like
colname,searchname,pageindex,pagesize.
Can any one help to solve this one?
Loading
Jignesh TrivediPosted Dec 11, 2013, 6:43 AM
Agree with Aarti, using ROW_NUMBER() function you can easily done paging.
here you must create dynamic query....
Please refer
http://www.codeguru.com/csharp/.net/net_data/article.php/c19611/Paging-in-SQL-Server-2005.htm
http://www.c-sharpcorner.com/UploadFile/6bb76f/searching-sorting-and-paging-using-sql-query/
hope this will help you.
AartiPosted Dec 11, 2013, 6:05 AM
Akkiraju IvaturiPosted Jan 19, 2013, 7:12 PM
http://consultingblogs.emc.com/rorystreet/archive/2008/01/29/Paging-filtering_2C00_searching-and-sorting-in-one-stored-procedure.aspx