PRB: "Errors Occurred" Error When Calling Stored Procedure with More than a SELECT Statement (241639)
The information in this article applies to:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
This article was previously published under Q241639 SYMPTOMS
When calling ICommand::Execute to execute a Microsoft SQL Server stored procedure using the Microsoft SQL Server OLE DB Provider, DB_E_ERRORSOCCURRED is returned and the IErrorInfo description information states "Errors Occurred."
CAUSE
The stored procedure contains more than a simple SELECT statement. A client side cursor is required.
RESOLUTION
In order to resolve this, you will have to use client side cursors. There are two ways to use client side cursors:
- For a forward only, read only client cursor, do not set rowset properties such as DBPROP_UPDATABILITY and DBPROP_IRowsetChange.
- Use an updateable client-side cursor.
STATUS
This behavior is by design (although Microsoft is investigating whether a more informative error message can be returned).
REFERENCES
See the SQL Server Books Online topic "Rowsets and SQL Server Cursors" for more information.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbConsumer kbDatabase kbprb kbProvider KB241639 |
---|
|