Solved

Server-Side Paging Using Oracle 8i

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

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/…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

810 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