If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > Can you open a recordset adOpenDynamic from a stored procedure?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-04, 18:56
dbsimmo dbsimmo is offline
Registered User
 
Join Date: May 2003
Posts: 2
Can you open a recordset adOpenDynamic from a stored procedure?

Hi,

Just having problems opening a recordset based on sproc that doesn't open forward-only.

Originally tried Command.Execute but this always returns a recordset in forward-only mode. So i tried...

....
Dim rs As New ADODB.Recordset
...
rs.Open "csptgCA_Options ""CA_SubjectVersionDetails"", 0", db, adOpenDynamic, adLockReadOnly

But it still opens it with cursor type of forward-only!

Does anyone know how to do this?

Thanks
Reply With Quote
  #2 (permalink)  
Old 03-18-04, 22:51
SCIROCCO SCIROCCO is offline
Registered User
 
Join Date: Mar 2004
Location: www.scirocco.ca
Posts: 346
Re: Can you open a recordset adOpenDynamic from a stored procedure?

If a provider does not support the requested cursor type, it may return another cursor type. The CursorType property will change to match the actual cursor type in use when the Recordset object is open. To verify specific functionality of the returned cursor, use the Supports method.

Try adOpenStatic instead of dynamic and see if that works.
__________________
http://www.scirocco.ca/images/banner...occobanner.gif

Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!

Or try our Ask An Expert service to answer any of your questions!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On