BUG: DBSQLEXEC() Returns Fail When RAISERROR Is CalledID: Q121529
|
The 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.
If 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.
Three different actions can be taken to avoid the problem:
Microsoft 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
Keywords : kbprg SSrvDB_Lib kbbug4.21
Version : 4.21
Platform : WINDOWS
Issue type :
Last Reviewed: March 20, 1999