PRB: SQLMail Functions Hang on MAPI ErrorLast reviewed: May 1, 1997Article ID: Q136869 |
The information in this article applies to:
SYMPTOMSIn Microsoft SQL Server version 6.0, any SQLMail extended stored procedure that you execute hangs indefinitely and does not return any results. This occurd when a MAPI function encounters an error which causes it to present a dialog box to the user. This problem could also affect alert notifications, scheduled backup notifications, and anything else that relies on the SQLMail extended stored procedures. When this problem occurs, the MSSQLSERVER service may get into a state where it cannot be shut down and the Windows NT machine must be rebooted in order to get SQLMail functionality to work properly again.
CAUSEUnder some circumstances, the current implementation of MAPI will cause a dialog box to appear on the desktop to indicate a MAPI error. When such a MAPI error is encountered while SQLMail is running, it can cause all SQLMail functions to hang until you click the OK button in the dialog box on the SQL Server machine. If the MSSQLSERVER service is running under a user account (or does not have permission to interact with the desktop), the dialog box never appears on the screen and all SQLMail functions hang until SQL Server is restarted (this may require restarting Windows NT if the MSSQLServer service cannot be shut down). Note, however, that other queries continue to execute normally on the server. Only queries which call a SQLMail extended stored procedure will hang. The following two conditions are known to cause the MAPI error dialog box (other MAPI errors could potentially cause the same symptoms):
Mail is unable to save information to your message file. Check that the connection to your message file still exists and you have disk space available. WORKAROUNDIdentify the MAPI error that is being returned in the dialog box and take the appropriate steps to avoid that error by working with your primary messaging support provider. In order to see the MAPI dialog box on the server, the SQL Server process must be run in a configuration that allows interaction with the desktop. There are two methods of accomplishing this:
|
Additional query words: sql6 xp windows nt
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |