Microsoft
Software
Hardware
Network
Question : Database Mail - Multiple queries within sp_send_dbmail.
Hi guys,
I was wondering if anyone had any luck running multiple queries within sp_send_dbmail.
What I would like to do is either :
1. Attach more than 1 attachment, each being the result of different queries ,or
2. Attach these results in different sheets within my excel attachment that is being sent via sp_send_dbmail.
Thanks for you assistance.
Regards,
Vinay
Answer : Database Mail - Multiple queries within sp_send_dbmail.
sp_send_dbmail accepts only 1 sql query parameter.
For more complex requierments, you can try using the SSIS packages to run mulitple queries and generate multiple files (1 file multiple sheets).. and then send them using the send mail task
Random Solutions
Free .NET tool to convert RTF to HTML
How to insert semicolon next to my values in excel column
How to change color in datarow in gridview in Web Part??
Create a graph in a Word doc from Access based on access table data
SSL Medium Strength Cipher Suites Supported
Dropdown list in formview edit template error.
Need Access 97
How to add a team discussion to a task list
populating @recipients value using msdb.dbo.sp_send_dbmail from a database table
use linq to get an observable collection into an array