I've spent some time googling, but I just can't seem to find or derive a straightforward answer to what I believe is a straightforward question.
I have an aspx page. On that page is a dropdown box. If the user selects choice ABC, then it fires off a stored procedure (USP) that calls EXECUTE msdb.dbo.sp_send_dbmail
The error generated is "EXECUTE permission denied on object 'sp_send_dbmail', database 'msdb', schema 'dbo'."
Very simply, I want this USP to fire any time any user in my company chooses choice ABC in the dropdown.
In my SQL installation, there is a user group called STAFF which includes all members of the company. STAFF has login rights to the instance. It is mapped to the msdb database and tagged with the DataBaseMailUser role, but apparently, this isn't enough because the error gets generated when anyone tries to use the interface.
The USP works when logged into MSSQL directly as dbo.
Surely there must be a way to configure MSSQL to send mail from a aspx UI in this fashion - isn't there? What is the proper setup to allow this?
I have an aspx page. On that page is a dropdown box. If the user selects choice ABC, then it fires off a stored procedure (USP) that calls EXECUTE msdb.dbo.sp_send_dbmail
The error generated is "EXECUTE permission denied on object 'sp_send_dbmail', database 'msdb', schema 'dbo'."
Very simply, I want this USP to fire any time any user in my company chooses choice ABC in the dropdown.
In my SQL installation, there is a user group called STAFF which includes all members of the company. STAFF has login rights to the instance. It is mapped to the msdb database and tagged with the DataBaseMailUser role, but apparently, this isn't enough because the error gets generated when anyone tries to use the interface.
The USP works when logged into MSSQL directly as dbo.
Surely there must be a way to configure MSSQL to send mail from a aspx UI in this fashion - isn't there? What is the proper setup to allow this?