• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 494
  • Last Modified:

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

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
kblau
Asked:
kblau
  • 2
1 Solution
 
lcohanDatabase AnalystCommented:
"calling c# assembly which calls sproc " - what SQL login IS calling the SP in this case?
0
 
kblauAuthor Commented:
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
 
kblauAuthor Commented:
did own research
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now