BUG: DBSQLEXEC() Returns Fail When RAISERROR Is CalledLast reviewed: April 30, 1997Article ID: Q121529 |
The information in this article applies to:
- Microsoft SQL Server Programmer's Toolkit, version 4.21BUG# 10210 (4.21)
SYMPTOMSThe Windows 3.x DB-Library functions, dbsqlexec() or dbsqlok(), return fail immediately following a RAISERROR event. The problem is also seen in VBSQL applications when calling the equivalent functions sqlexec% and sqlok%. This problem does not happen with DB-Library for Windows NT. However, if the FAIL is ignored, the application can continue with the processing of any pending results from the other queries.
CAUSEIf a RAISERROR is the first thing called in a stored procedure or SQL batch, the dberrhandler will be called before dbsqlexec() or dbsqlok() return and after the error handler has finished a FAIL is returned to the function.
WORKAROUNDThree different actions can be taken to avoid the problem:
STATUSMicrosoft has confirmed this to be a problem in DB-Library version 4.21.00 for Windows 3.x. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: dblib
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |