Microsoft KB Archive/151545

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 16:24, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


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