Solved

Server-Side Paging Using Oracle 8i

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
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/…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now