Sql Server 2005 how to change dbo login name

Jason Kanaris picture Jason Kanaris · Oct 2, 2008 · Viewed 68k times · Source

I have a database with user 'dbo' that has a login name "domain\xzy". How do I change it from "domain\xzy" to "domain\abc".

Answer

Jason Kanaris picture Jason Kanaris · Oct 30, 2008

I figured it out. Within SQL Management Studio you have to right-click on the database -> Properties -> Files -> Owner field. Change this field to the login name/account that you want associated with the "dbo" username for that database. Please keep in mind that the login name/account you choose must already be setup in the sql server under Security -> Logins