Solved

ADO and stored proc

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi XE10, DigitalPersona Fingerprint reader and MySQL 6 324
Create Database on Android via Delphi dbExpress 3 110
HTML text in the body of an email (delphi code) 12 166
Delphi 2 69
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

839 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