Dear All,
we are running SQL2000 Sever and make use of the xp_sendmail.
For any reason the mail service can run into problems and it looks
like that the statemnt below gets not finished.
EXEC @Status = master..xp_send mail @recipients=@TO List,
@copy_recipient s=@CCList,@subj ect='the subject goes
here',@message= @MailText,@no_o utput=TRUE
Unfortunately the statement is in an update trigger and hence it
blocks the table for any further updates.
My questions are:
Can I achieve a kind of timeout check in my trigger in order to bypass
the
xp_sendmail call ?
In general, sending mail in a trigger may not be a good idea.
How can this be solved better ?
Any hint is highly welcome
Regards
Rolf
we are running SQL2000 Sever and make use of the xp_sendmail.
For any reason the mail service can run into problems and it looks
like that the statemnt below gets not finished.
EXEC @Status = master..xp_send mail @recipients=@TO List,
@copy_recipient s=@CCList,@subj ect='the subject goes
here',@message= @MailText,@no_o utput=TRUE
Unfortunately the statement is in an update trigger and hence it
blocks the table for any further updates.
My questions are:
Can I achieve a kind of timeout check in my trigger in order to bypass
the
xp_sendmail call ?
In general, sending mail in a trigger may not be a good idea.
How can this be solved better ?
Any hint is highly welcome
Regards
Rolf
Comment