<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://weblogs.asp.net/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>Ben Dill's Blog : Security</title><link>http://weblogs.asp.net/bdill/archive/tags/Security/default.aspx</link><description>Tags: Security</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Who Owns Your Databases?</title><link>http://weblogs.asp.net/bdill/archive/2009/01/21/who-owns-your-databases.aspx</link><pubDate>Wed, 21 Jan 2009 19:36:00 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:6851978</guid><dc:creator>MuteThis</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/bdill/rsscomments.aspx?PostID=6851978</wfw:commentRss><comments>http://weblogs.asp.net/bdill/archive/2009/01/21/who-owns-your-databases.aspx#comments</comments><description>&lt;P mce_keep="true"&gt;Right now we have owners set to whoever creates the databases for most databases, but&amp;nbsp;there are a few owned by sa.&amp;nbsp; I'm thinking how great it would be to consolidate this.&amp;nbsp; To this end, I've created a database owner domain account and added it as a SQL server login.&amp;nbsp; The login only has the public server role.&amp;nbsp; In a move common with things I typically do, going overboard, I have denied this accounts ability to connect to the server and disabled it.&lt;/P&gt;
&lt;P mce_keep="true"&gt;So far things seem to be going smoothly.&amp;nbsp; One thing to note is that if you are planning on using unsafe clr assemblies the owner will need to have unsafe permissions....&lt;/P&gt;
&lt;P mce_keep="true"&gt;This seems like a fairly secure database owner setup to me.&amp;nbsp; I mentioned it to someone and he asked if we just had a security problem...&amp;nbsp; No, that's the point, we don't want one.&amp;nbsp;&amp;nbsp;What do you think?&lt;/P&gt;
&lt;P mce_keep="true"&gt;If things work out, we'll be looking for a way to automatically set the owner.&amp;nbsp; I'm guessing it'll need to be a server level trigger, because I don't see anything in model that let's you assign a default owner...&lt;/P&gt;
&lt;P mce_keep="true"&gt;Feedback greatly appreciated.&lt;/P&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=6851978" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/bdill/archive/tags/SQL+Server/default.aspx">SQL Server</category><category domain="http://weblogs.asp.net/bdill/archive/tags/Security/default.aspx">Security</category></item></channel></rss>