<?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>Laurent Kempé : SQL Server</title><link>http://weblogs.asp.net/lkempe/archive/tags/SQL+Server/default.aspx</link><description>Tags: SQL Server</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Note to self - How can I change the database owner?</title><link>http://weblogs.asp.net/lkempe/archive/2007/09/27/note-to-self-how-can-i-change-the-database-owner.aspx</link><pubDate>Thu, 27 Sep 2007 07:39:41 GMT</pubDate><guid isPermaLink="false">c06e2b9d-981a-45b4-a55f-ab0d8bbfdc1c:4199273</guid><dc:creator>lkempe</dc:creator><author>lkempe</author><slash:comments>1</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://weblogs.asp.net/lkempe/rsscomments.aspx?PostID=4199273</wfw:commentRss><comments>http://weblogs.asp.net/lkempe/archive/2007/09/27/note-to-self-how-can-i-change-the-database-owner.aspx#comments</comments><description>&lt;p&gt;From: &lt;a title="http://www.mssqlcity.com/FAQ/Admin/DBOwner.htm" href="http://www.mssqlcity.com/FAQ/Admin/DBOwner.htm"&gt;http://www.mssqlcity.com/FAQ/Admin/DBOwner.htm&lt;/a&gt;&lt;/p&gt; &lt;blockquote&gt; &lt;p&gt;&lt;b&gt;Answer:&lt;/b&gt;&lt;br&gt;You can use the &lt;b&gt;sp_changedbowner&lt;/b&gt; system stored procedure to change the database owner.&lt;br&gt;Read about the &lt;b&gt;sp_changedbowner&lt;/b&gt; stored procedure in SQL Server Books Online.&lt;br&gt;This is the example to make the user John the owner of the pubs database:&lt;/p&gt;&lt;pre&gt;USE pubs
GO
EXEC sp_changedbowner 'John'
GO&lt;/pre&gt;&lt;/blockquote&gt;&lt;img src="http://weblogs.asp.net/aggbug.aspx?PostID=4199273" width="1" height="1"&gt;</description><category domain="http://weblogs.asp.net/lkempe/archive/tags/Note+to+self/default.aspx">Note to self</category><category domain="http://weblogs.asp.net/lkempe/archive/tags/SQL+Server/default.aspx">SQL Server</category></item></channel></rss>