Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xp_sendmail error

Status
Not open for further replies.

hne

Programmer
Oct 16, 2003
38
US
Hi DB gurus,
When I run the query to send an email,

EXEC master..xp_sendmail
@recipients = 'mcellery.badio@delta.com',
@subject = 'Mail sent'

I get the error:
Server: Msg 229, Level 14, State 5, Procedure xp_sendmail, Line 1
EXECUTE permission denied on object 'xp_sendmail', database 'master', owner 'dbo'.

HELP!!! How can I resolve this? Thanks!
 
hne,

You can make the user dbo, granting them the permissions that go along with database owner.

If that is not an option, grant the specific user 'execute' rights to the xp_sendmail object.

In Enterprise Manager, you do that by....
expanding Master database
click 'Users'
Right-click on the user name--> Properties
click Permissions
scroll down to 'xp_sendmail' and click on the Exec column

This will enable the user to run xp_sendmail

I hope this helps.
If you dont have Enterprise Manager, post back and we will
give you the syntax to do the same withing Query Analyzer.

John

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top