Solved

ADO and stored proc

Posted on 2000-02-14
5
387 Views
Last Modified: 2010-10-05
Hi,
I am having a very serious problem using ADO with stored procedure. I am
using Microsoft’s ADODB_TLB. I have written a stored procedure with a
simple select st. I use recordset and get those values. But I am getting
an error when I use
            Recset.Aboslutepage
Error -     “operation requested by the application is not supported by
the provider”
It works perfectly in VB or ASP. I got the same error when I used
command obj.What can be the problem? Please let me know
                         Thanking you,
                             Gold

0
Comment
Question by:manjushan
  • 3
  • 2
5 Comments
 

Expert Comment

by:Michael_Benjamin_Perez
ID: 2518517
It depends on the opening of the Recordset (adOpenForwardOnly, adOpenDynamic, adOpenKeyset) check the necessary documentation.

When using Recset.AbsolutePage you'll probably need to open it with adOpenDynamic.

In VB it probably works because of the default parameters... (it uses adOpenDynamic as default).

Good luck !
0
 

Author Comment

by:manjushan
ID: 2518746
hi,
  If I use RecSet.Open('select * frm assa,connstr,3,3,0) then
  RecSet.AboslutePage is workinf correctly.This problem is there only for stored procedures
0
 

Accepted Solution

by:
Michael_Benjamin_Perez earned 60 total points
ID: 2518872
The last zero specifies the parameter adCmdText, when using stored procedures it's handy to use the const adCmdStoredProc (which is 3).

Try it !
0
 

Author Comment

by:manjushan
ID: 2522118
Hi Michael,
  Thanks its working fine.
                Manju
0
 

Expert Comment

by:Michael_Benjamin_Perez
ID: 2522147
Great !

Now let's hope for better documentation of ADO.

Ciao

Mick.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

747 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

12 Experts available now in Live!

Get 1:1 Help Now