BUG: xp_sendmail with @query leaves temporary files on server (151545)



The information in this article applies to:

  • Microsoft SQL Server 6.0
  • Microsoft SQL Server 6.5
  • Microsoft SQL Server 7.0

This article was previously published under Q151545
BUG#: 15268 BUG#: 226802 (Shiloh_bug)

SYMPTOMS

If xp_sendmail is run with a query and @attach_results is true, temporary files are left in the System32 directory where Microsoft Windows NT is installed.

WORKAROUND

  1. Use the optional parameter @attachments to specify the file name and only one file will be left in the System32 directory.
  2. Use the optional parameter @attachments to specify the file path to a temporary directory for easy cleanup later.

STATUS

Microsoft has confirmed this to be a problem in Microsoft SQL Server versions 6.0 and 6.5.

Modification Type:MajorLast Reviewed:6/7/2005
Keywords:kbBug KB151545