DTS Email Excel sheet

  • Hi All

     

    Iam trying to find a way to send an excel spreadsheet to an outlook email address .

     

    This could be done with the send mail task? is it right?

     

    Also the excel sheet name changes everyday usually its the date , so is there a better way of configuring this task?

     

     

    Thanks

     

  • use the extended procedure xp_sendmail. Check BOL for the syntax.


  • You might want to look in to the xp_smtp_sendmail at http://www.sqldev.net/xp/xpsmtp.htm as an alternative to the SQL Server mail.

    As for the change in name, you could use an ActiveX script to detect the file and therefore the name; or you could, if you know the name (like it's the date formatted or something) you could use Dynamic properties before using send mail (if you still want to use that).



    Ade

    A Freudian Slip is when you say one thing and mean your mother.
    For detail-enriched answers, ask detail-enriched questions...[/url]

  • Thanks Adrian!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply