Home All Groups Group Topic Archive Search About

Sending a report attachment to a dynamic list of recipients

Author
16 Dec 2005 4:51 AM
KarenM
I have a report output generated for each vendor and I want to email
this attachment to the appropriate vendor.

The problem is how can I send a email to each vendor with a attachment
for the DTS email task or the XP_SMTP procedure.

Thanks
Karen

Author
16 Dec 2005 7:56 AM
Jens
For XP_SMTP_SENDMAIl you have to loop though the resultset and change
the recipients list and send the emails on by one (e.g. with a cursor),
in DTS you have to build a loop programatic structure, there are
samples out there for this, look in google for DTS and loop.

(Its that much easier in SQL2k5 X-) )

HTH, jens Suessmeyer.

AddThis Social Bookmark Button