<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://sqlblog.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tags 'Database Administration', 'Articles', and 'Security'</title><link>http://sqlblog.com/search/SearchResults.aspx?o=DateDescending&amp;tag=Database+Administration,Articles,Security&amp;orTags=0</link><description>Search results matching tags 'Database Administration', 'Articles', and 'Security'</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP2 (Build: 61129.1)</generator><item><title>New Article on SQL Server Central: Using a Certificate Signed Stored Procedure to Execute sp_send_dbmail</title><link>http://sqlblog.com/blogs/jonathan_kehayias/archive/2009/12/17/new-article-on-sql-server-central-using-a-certificate-signed-stored-procedure-to-execute-sp-send-dbmail.aspx</link><pubDate>Thu, 17 Dec 2009 07:58:53 GMT</pubDate><guid isPermaLink="false">21093a07-8b3d-42db-8cbf-3350fcbf5496:20054</guid><dc:creator>jmkehayias</dc:creator><description>&lt;p&gt;Part of the reason for a reduction in the amount of blogging that I have been doing is that I have tried to expand the amount of information that I put into writing up a topic and instead of blogging those topics, publish them as articles online.&amp;#160; My most recent article was just published on SQL Server Central and is titled “Using a Certificate Signed Stored Procedure to Execute sp_send_dbmail.”&lt;/p&gt;  &lt;p&gt;A common problem that I have seen online and recently ran into personally, is how to call sp_send_dbmail from a database stored procedure without having to explicitly add user logins as a user in msdb and explicitly grant those logins the DatabaseMailUserRole.&amp;#160; In this article I demonstrate how to create a wrapper stored procedure in your database and use a certificate to sign this stored procedure and provide the necessary security rights through the certificate signed procedure to avoid errors such as:&lt;/p&gt;  &lt;p&gt;Msg 229, Level 14, State 5, Procedure sp_send_dbmail, Line 1   &lt;br /&gt;The EXECUTE permission was denied on the object 'sp_send_dbmail', database 'msdb', schema 'dbo'.&lt;/p&gt;  &lt;p&gt;To read about how to do this, see the article at:&lt;/p&gt;  &lt;p&gt;&lt;a title="http://www.sqlservercentral.com/articles/Security/68873/" href="http://www.sqlservercentral.com/articles/Security/68873/"&gt;http://www.sqlservercentral.com/articles/Security/68873/&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>