Solved

ADO and stored proc

Posted on 2000-02-14
5
391 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

Does Powershell have you tied up in knots?

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 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