Link to home
Start Free TrialLog in
Avatar of CrispyC4
CrispyC4Flag for South Africa

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Wizilling
Wizilling
Flag of New Zealand 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
Avatar of CrispyC4

ASKER

Thanks Wizilling