BUG: Dbprocerrhandle or Dbprocmsghandle Unexpectedly Returns NUL

Last reviewed: July 16, 1997
Article ID: Q171367
The information in this article applies to:
  • Microsoft SQL Server, versions 6.5
BUG #: 16733 (Windows: 6.5)

SYMPTOMS

An attempt to install a per process error or message handler may unexpectedly return NULL if you use a LOGINREC to install the handler.

WORKAROUND

To work around this problem, check the calls to dbprocerrhandle and dbprocerrhandle. If it returns NULL and does not meet the criteria described in the MORE INFORMATION section of this article, call dbfreelogin and reconstruct the LOGINREC.

MORE INFORMATION

The functions can correctly return NULL in the following situations:

  • The DBHANDLE passed to the function is NULL.
  • The DBHANDLE passed in is a LOGINREC, but the LOGINREC is invalid.
  • The DBHANDLE is a DBPROCESS and the process is dead (DBDEAD).
  • The DBHANDLE is a DBPROCESS and there is no prior handler installed. In this case, it returns the former handler just like the global callback handler installations.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: Invalid Login Function
Keywords : kbbug6.50 kbprg SSrvProg
Version : 6.5
Platform : WINDOWS
Issue type : kbbug
Resolution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.