Microsoft KB Archive/180779

= INF: Proper Use for DB-Library Err Handler Return Code INT_EXIT =

Article ID: 180779

Article Last Modified on 11/5/2003

-

APPLIES TO


 * Microsoft SQL Server 6.5 Standard Edition
 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q180779



SUMMARY
This article describes how the INT_EXIT return code in the DB-Library error handler may cause unexpected application behavior.

For complete documentation on INT_EXIT, see the SQL Server Books Online.



MORE INFORMATION
INT_EXIT stops execution of the current process by invoking ExitProcess(1). This can lead to unexpected application behavior.

NOTE: You should NEVER use a return code of INT_EXIT when building extended stored procedures or COM-based components, especially in-process servers, ISAPI DLLs, or in other extensible architectures.

If you return INT_EXIT from your DB-Library message handler while in an extended stored procedure, the ExitProcess will simply stop the SQL Server process. There will be no message in the SQL Server errorlog and it appears as if someone turned off the computer.

Additional query words: crash shutdown db-lib

Keywords: kbinfo KB180779

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.