Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

ADO and stored proc

Posted on 2000-02-14
5
Medium Priority
?
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 180 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Screencast - Getting to Know the Pipeline
Suggested Courses

597 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