Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

SQL Server output

How do I take the SQl Statement like below
Set @bodyMail = @header + @textMessage + @tableHeader + @content + @signature + @footer

And email it as an attachment instead of as the body in the attached snippet?
EXEC msdb.dbo.sp_send_dbmail 
         @profile_name='Sql Server', 
         @recipients='lbrister@mycompany.com',
         @subject='Funder OC Review',
         @body=@bodyMail,
         @body_format ='HTML'

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Larry Brister

ASKER

Hey guys
Both are great answers...any problem splitting points with a bit more to ged325 for being firts?
As you like.
Excellent.  Thanks folks