Link to home
Start Free TrialLog in
Avatar of Albert Widjaja
Albert WidjajaFlag for Australia

asked on

How to change SQL Server DB Owner ?

Hi People,

I've got a several SQL Server database which is owned by DOMAIN\Administrator, I'd like  to change it to the respective person associated with their Application DB eg. DOMAIN\Person1

so how can I change the DB Owner for the database without causing problem or downtime for the production database in SQL Server 2008 and 2005 ?

Thanks.
SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Albert Widjaja

ASKER

lol... anything that doesn't require downtime is good for me mate.

hopefully it can swap the DB Owner without needing restart or DB attach detach.
>>hopefully it can swap the DB Owner without needing restart or DB attach detach. <<
Not need to restart, let alone detach/attach.  It should take less that 5 seconds to complete and no one will be the wiser.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Fair enough. So why don't you post the solution using ALTER AUTHORIZATION, rather than parroting what you read in SQL Server's BOL?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Very good point.