Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format an Attachment when using xp_Sendmail

Status
Not open for further replies.
Mar 12, 2003
678
US
How can I format my output query when using the xp_sendmail in sql 2000. The following is the code i am using and the attachment is unreadable:

exec master..xp_sendmail @recipients='klewis',
@query='Select * from integrations.dbo.TRKtransExceptions',
@subject = 'Missing trako Memebers',
@message = 'This is a test',
@attach_results = 'TRUE',
@width = 256,
@separator=',',
@attachments = 'Trako Members.txt'

 
Maybe you need to preface "where" the attachment is like ...


@attachments = 'C:\MyDir\Trako Members.txt'


Thanks

J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top