PRB: Xp_sendmail with Query May Cause Deadlocks in SQLMailLast reviewed: March 12, 1997Article ID: Q164999 |
The information in this article applies to:
SYMPTOMSIf you run the extended stored procedure xp_sendmail with the optional @query parameter, and the query calls xp_sendmail or causes it to be run with a trigger again, the client process deadlocks with itself and cannot be killed.
CAUSEThe SQLMail extended stored procedures are serialized, and can only be run one at a time.
WORKAROUNDTo work around this problem, make sure that the @query parameter does not call xp_sendmail again, and that if data modification is done in the query, xp_sendmail is not called by triggers on the effected tables.
MORE INFORMATIONIn this situation, neither the original connection nor the loopback connection made by SQLMail can be killed. However, the client can cancel the query.
|
Additional query words: block
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |