Solved

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

Posted on 2013-01-14
3
473 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
Comment Utility
"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
Comment Utility
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
Comment Utility
did own research
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
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…

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now