Home Forums SQL Server 2005 Administering Execute the Database Mail Stored procedures in scheduler RE: Execute the Database Mail Stored procedures in scheduler

  • I just remembered that I did this before and I believe that I used s a Execute SQL Task.

    I defined the From & To as well as the body. You can define an attachment.

    Sorry but I do not have the code but it was very easy once I figured out how to do this.

    You can also look at sending the result to a variable and look at the MEssage Source Type and Message Source in the Send Mail Task.

    Sorry that I can't recall exactly what I did but is was very straight forward.

    For better, quicker answers on T-SQL questions, click on the following...
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    For better answers on performance questions, click on the following...
    http://www.sqlservercentral.com/articles/SQLServerCentral/66909/