dbTalk Databases Forums  

Sending a report attachment to a dynamic list of recipients

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Sending a report attachment to a dynamic list of recipients in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
KarenM
 
Posts: n/a

Default Sending a report attachment to a dynamic list of recipients - 12-15-2005 , 10:51 PM






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


Reply With Quote
  #2  
Old   
Jens
 
Posts: n/a

Default Re: Sending a report attachment to a dynamic list of recipients - 12-16-2005 , 01:56 AM






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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.