FIX: Sending Maintenance Report by E-mail to Operator Fails in Maintenance Plan (279867)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q279867
BUG #: 351140 (SHILOH_BUGS)
SYMPTOMS
A SQL Server Database Maintenance Plan includes an option to send a maintenance report (that is, a file that contains results for the execution of the maintenance plan) by e-mail to a predefined operator on the server. E-mailing the maintenance report file to the operator may fail with the following error message, which can be found in the maintenance report for the Database Maintenance Plan:
Error 18025: [Microsoft][ODBC SQL Server Driver][SQL Server]xp_sendmail: failed with mail error 0x80004005
This error does not affect the reporting of the job status; the job itself is shown as successful.
CAUSE
The xp_sendmail extended stored procedure fails with the above error when attempting to send an open file as an e-mail attachment. Sqlmaint.exe executes the Maintenance Plan and writes output to the report file. The final step in the Maintenance Plan, which is to send an e-mail, is also recorded in the report. Because the report file is still open when xp_sendmail tries to send it as an attachment, the attempt fails.
RESOLUTIONTo resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
WORKAROUND
For a workaround to this problem, see the "More Information" section of this article.
STATUSMicrosoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kbBug kbfix kbSQLServ2000sp1fix KB279867 |
---|
|