question

creiglowl avatar image
creiglowl asked

Is certificate required when user is in databasemailuser role in msdb?

Our app user needs to run a stored proc that sends an email using sp_send_dbmail proc in msdb. I did add the user to the databasemailuser role and as a user in msdb. But if I attempt to execute the procedure with execute as user there is a deny on executing the stored procedure. If I execute as login it works. Everything I read says only the role membership is required, but I am implementing the certificate to sign the proc and attach to the user to see if this will resolve the issue. But I don't see anywhere that it says this is required if the user in the databasemailuser role so I am wondering if there is something else wrong. This is the first time I am setting up dbmail on SQL 2016 on Server 2016 so this is a little baffling to me as I have always gotten this to work on 2008. Thanks!

dbmailsql databaseexecutestored procedure
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.