RE: Change ownership of model and msdb to 'sa'

From: pk (pk_at_discussions.microsoft.com)
Date: 02/23/05


Date: Wed, 23 Feb 2005 03:39:04 -0800

I am facing the same problem as Maggie. My Production's SQL2k MSDB & Model
database owner is my old NT Domain Administrator (olddomain/administrator).
Not sure how it ended that way. Master owner is SA.

We have completed domain migration to Active Directory, if sp_changedbowner
is not going to allow me to change DB owner for MSDB & Model, does that mean
I still got to keep my old domain forever ?

There must be a work-around for this.
 
"Rob" wrote:

> From BOL:
>
> The owner of the master, model, or tempdb system databases
> cannot be changed.
>
> - Rob
>
> >-----Original Message-----
> >We are trying to exec sp_changedbowner 'sa' on model
> database to change
> >ownership from the service account 'service_sql' to 'sa'
> account
> >However, we got the follow error:
> >15109 16 Cannot change the owner of the master database.
> >Is there any know how to Change ownership of model and
> msdb to 'sa' if in
> >case 'sa' is not owner of msdb and model?
> >
> >Thanks!!
> >
> >.
> >
>



Relevant Pages

  • Re: Execute permission denied on object xp_SQLagent_notify
    ... it was probably then when the owner changed. ... USE msdb ... EXECUTE permission denied on object 'xp_sqlagent_is_starting', database ... The puzzling part here is that I got the errors on 2 servers out of the 10 ...
    (microsoft.public.sqlserver.security)
  • Change ownership of model and msdb to sa
    ... The owner of the master, model, or tempdb system databases ... >15109 16 Cannot change the owner of the master database. ... >case 'sa' is not owner of msdb and model? ...
    (microsoft.public.sqlserver.server)
  • Re: Cant Install SP4 for SQL 2000 / Win2k3
    ... This explains why a reinstall did not fix the errors. ... ran 'sp_resetstatus msdb' from query analyzer, ... > The LSN %S_LSN passed to log scan in database '%.*ls' is invalid. ... > To resolve this problem, obtain the latest service pack for Microsoft SQL ...
    (microsoft.public.sqlserver.setup)
  • RE: Truncated INSERT statements when using sp_generate_inserts by Vyas
    ... SET NOCOUNT ON ... This procedure is also useful to create a database setup, ... ALSO NOTE THAT THIS PROCEDURE IS NOT UPDATED TO WORK WITH NEW DATA TYPES INTRODUCED IN SQL SERVER 2005 / YUKON ... IF @owner IS NULL ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL 2005 Express-Database does not have a valid owner?
    ... That means that the database's owner is MYDOMAIN\MyUserName ... My design machine is running Windows XP Pro. ... database diagram. ... Database diagram support objects cannot be installed because this ...
    (microsoft.public.sqlserver.security)