Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Server-Side Paging Using Oracle 8i

Posted on 2001-08-08
1
Medium Priority
?
271 Views
Last Modified: 2009-12-16
Does anyone know how to implement server-side paging using a stored procedure in Oracle 8i?  I've seen this done in MS SQL Server, but we have Oracle here.  I can do paging at the client-level (IIS/ASP), but would like to do it on the server using an SP.

If anyone has the answer, post it with as much detail as possible.

Thanks.
0
Comment
Question by:icastel
1 Comment
 
LVL 2

Accepted Solution

by:
AccessHelpNet earned 150 total points
ID: 6369540
I have seen a bunch of SQL Server paging sprocs that use temp tables and the like and I personally think they are a very bad idea.  If you are going to use sproc paging it is better to pass the pagesize and position you want and just rerun the query to pull out what you need imho.  

Anyways, in Oracle you can use ROWCOUNT to determine your positioning.  So a packaged procedure that does something like Select FIELD1,FIELD2 from YOURTABLE WHERE ROWCOUNT > 10 AND ROWCOUNT < 20 (where the ROWCOUNT parameters are computed dynamically) is what I would try. Good luck.

regards,

Dave Kawliche
http://AccessHelp.net
http://1ClickDB.com
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month9 days, 18 hours left to enroll

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question