FIX: RAISERROR Does Not Work with SQLOLEDB Provider (217019)
The information in this article applies to:
- Microsoft SQL Server 7.0
- Microsoft SQL Server 7.0 Service Pack 1
- Microsoft Data Access Components 1.5
- Microsoft Data Access Components 2.0
- Microsoft Data Access Components 2.1 SP2
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q217019
BUG #: 55618 (SQLBUG70)
SYMPTOMS
When using the SQLOLEDB provider with server side cursors, the error description is not returned from a RAISERROR call inside a SQL Server procedure. An error is raised to the client, however, the description is not returned to the client. Instead the client only receives the following error message:
Run-time error '-2147217887 (80040e21)':
Errors occurred
WORKAROUND
To work around this problem, try either of the following:
- Use the client side cursor library. In the following code you need to change the cursor location to adUseClient instead of adUseServer.
-or-
- Use the Microsoft OLE DB Provider for ODBC Drivers instead of the Microsoft OLE DB Provider SQL Server.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base: 254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0 For more information, contact your primary support provider.
Modification Type: | Major | Last Reviewed: | 3/14/2006 |
---|
Keywords: | kbado270fix kbbug kbDatabase kbfix kbmdac270fix KB217019 |
---|
|