Solved

Server-Side Paging Using Oracle 8i

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

22 Experts available now in Live!

Get 1:1 Help Now