Solved

Server-Side Paging Using Oracle 8i

Posted on 2001-08-08
1
238 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 50 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
If-Then-Else ASP problem 6 67
JS does not refresh 6 30
Index on a Table 6 25
edit .asp files 5 31
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 demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 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