Microsoft KB Archive/151545

= BUG: xp_sendmail with @query leaves temporary files on server =

Article ID: 151545

Article Last Modified on 6/7/2005

-

APPLIES TO


 * Microsoft SQL Server 6.0 Standard Edition
 * Microsoft SQL Server 6.5 Standard Edition
 * Microsoft SQL Server 7.0 Standard Edition

-



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.

Additional query words: xp_startmail @query

Keywords: kbbug KB151545

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.