Remote Data Object 
Author Message
 Remote Data Object


Quote:

>I have a MS SQLServer 6.0 stored procedure taking one parameter, and
>returning two result sets (it has two select statements). I use a
>rdoPreparedStatement to represent this stored procedure in VB 4.0.
>When I use OpenResultSet on the prepared statement, I get an error
>stating that it is not possible to make a cursor on a stored procedure
>returning more than one result set!

>Why can't I open result sets without a cursor?

You must use ODBC cursors when you make the connection.  You probably
have opened the connection with the default cursor driver of
rdUseIfNeeded.  With this parameter, Server Side curors will be used
even though The Microsoft SQL Server server-side cursors do not
support result sets that return more than a single set of results.  To
enable the ODBC cursor driver, set the rdoEnvironment object's
CursorDriver property to rdUseODBC before creating the cursor.

Ex) object.CursorDriver = rdUseODBC

Robert Carpenter



Sun, 30 Aug 1998 03:00:00 GMT  
 Remote Data Object

Quote:



>>My problem:
>>I have a MS SQLServer 6.0 stored procedure taking one parameter, and
>>returning two result sets (it has two select statements).
>Your solution:
>Ex) object.CursorDriver = rdUseODBC
>Robert Carpenter

Thanks, I tried it, but here is the result:

?rdoerrors(0).description
22005: [Microsoft][ODBC SQL Server Driver]Error in assignment

?rdoerrors(1).description
01S02: [Microsoft][ODBC Cursor Library] Option value changed

?

Espen



Mon, 31 Aug 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. CANNOT CONNECT TO REMOTE DATA OBJECT

2. Question on ODBC, Remote Data objects and DAO

3. Help Please: RDO - Remote Data Objects

4. Remote Data Objects in combination with level 1 compliance level

5. Learn Remote Data Objects

6. Learn Remote Data Objects

7. MS Visual Basic and Remote data objects

8. Changing password with Remote Data Objects

9. MSRDC Remote data object question...

10. Remote Data Objects (RDO) Problem

11. Is Remote Data Object(RDO) & Remote Data Control(RDC) bundled with VB5.0 Prof. Edition

12. "no open cursor or cursor closed" when using Addnew for Remote Data Objects

 

 
Powered by phpBB® Forum Software