Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Database mail configuration

Author  Topic 

cencoremoi
Starting Member

5 Posts

Posted - 2011-08-16 : 03:18:56
I am trying to configure sql server 2005 to use Database Mail - I thought I had it configured correctly but when I try to send a test it fails. Going through the troubleshooting steps it says that to send mail users must be a
member of the DatabaseMailUserRole role. Further it says to add the user you should use this statement:

sp_addrolemember @rolename = 'DatabaseMailUserRole',
@membername = '<database user>'

When I try this I get this error:

Msg 15014, Level 16, State 1, Procedure sp_addrolemember, Line 41
The role 'DatabaseMailUserRole' does not exist in the current database.

I am not able to find any documentation about creating this role or what permissions it needs etc. Can anyone provide me with the steps to create this role and get Database Mail running?

thanks

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2011-08-16 : 06:18:37
here is the link
http://www.kodyaz.com/articles/sql2005-database-mail.aspx
Go to Top of Page

cencoremoi
Starting Member

5 Posts

Posted - 2011-08-17 : 02:23:54
Thanks
Go to Top of Page
   

- Advertisement -