December 31, 2024 at 2:56 pm
Hello SSC!
I hope everyone had a great holiday! Happy New Year to all!
Issue:
I am currently using SQL Agent to send emails when a job succeeds or fails. The process is basically a bunch of SSIS packages. I also have an attachment that is the results of an SQL query, which UNIONS 2 log tables. This is done using an attachment text file. My issue is that management wants the results in the body of the email. As of now, this is a 2-3 step process to open the email and attachment. They just want to open the email and see the query results in the email body. I can't say that I blame them. LOL!
Does anyone know of a better way to handle this? Please see my list below and as always thank you all in advance!
Any assistance would be greatly appreciated!
Dave
The are no problems, only solutions. --John Lennon
December 31, 2024 at 4:06 pm
Thanks Ken - Thank you very much for your response, but this is just creating an XML table. I need to embed a SQL query into the body of an MS Outlook email.
The are no problems, only solutions. --John Lennon
December 31, 2024 at 4:19 pm
¿Qué?
Just send an html email with the table in the body text.
December 31, 2024 at 9:24 pm
Several examples here: https://www.sqlservercentral.com/forums/topic/create-html-email
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply