Mitdasein in the experience of encountering the customer in our common having been cast into the opening of beyng

Monday, July 02, 2007

Changing dbo (database owner)

Sometimes you need to change the user (login) that owns a database.

For example, you may need to restore a database backup, and the user that made the backup is not a user on your current machine.

There's a Sql Server sproc (stored procedure) to change owner: sp_changedbowner.

1 Comments:

Blogger enowning said...

E.G.: sp_changedbowner 'domain\login'

Friday, July 17, 2009 1:58:00 PM

 

Post a Comment

<< Home