Is it possible to conduct paging via a stored procedure?

Posts   
 
    
gemfore
User
Posts: 35
Joined: 30-Jul-2010
# Posted on: 08-Aug-2010 15:19:26   

At the moment i've having to use views, but this limits me massivly when it comes to more complex querys.

Do retirevial SP's have any build in paging support?

Thanks

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Aug-2010 19:05:58   

There is no such thing as paging in a normal SP. Some optinons:

A. If you are using a GridView, use the paging of the GridView, all results will be fetched eachtime you'd select a page, and the grid will just display the needed records. (Not effecient)

B. Implement paging in your SP, add a couple of parameters for the page number & page size.

C. You can project the results into an entityCollection, and use the client side EntityView filtering. Then you can implement your own Client-Side paging mechanism.

David Elizondo | LLBLGen Support Team