Solved

sp_send_dbmail works if tsql job agent calls tsql, but does not work if assembly called

Posted on 2013-01-14
3
478 Views
Last Modified: 2013-01-20
real simple.  sa is owner in both cases
i have tsql job agent calling sproc directly with sp_send_dbmail, works beatifully.
i have tsql job agent calling c# assembly which calls sproc with sp_send_dbmail, now sp_send_dbmail not working.
0
Comment
Question by:kblau
  • 2
3 Comments
 
LVL 39

Expert Comment

by:lcohan
ID: 38779214
"calling c# assembly which calls sproc " - what SQL login IS calling the SP in this case?
0
 
LVL 5

Accepted Solution

by:
kblau earned 0 total points
ID: 38779383
think i figured out the problem in theory, no have time to test.  need DatabaseMailUser role for user that calls into sproc (connection string)
0
 
LVL 5

Author Closing Comment

by:kblau
ID: 38798083
did own research
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question