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
Access2003: working with mouse wheel
VFP9R.DLL file is invalid or damaged
How do I remap a key to "Tab" in Access 2007 form?
How do I check if my Video Card driver is up to date in Gateway 6800-01e
System error &H8007008 (-2147024888) not enough storage available to rocess this command
dblclick event in a textbox -- seltext not available
DOS script to compare date and send notification
SSIS 08 - Manifest Deploy Validation fails, can't access password.
How to add a typed TableAdapter object to a form
Make screen captcher ralative to the form not the screen