Results 1 to 2 of 2

Thread: Change the owner of the database

  1. #1
    reddy Guest

    Change the owner of the database

    Hi All,

    I want to change the OWNER of the database to 'sa' and I executed the
    following system stored procedure

    EXEC sp_changedbowner 'sa'

    and I get the following error message..

    Server: Msg 15110, Level 16, State 1, Procedure sp_changedbowner, Line 46
    The proposed new database owner is already a user in the database.

    Any ideas
    Thanks
    Reddy

  2. #2
    Jim W Guest

    Change the owner of the database (reply)

    Um, who is the current owner of the database?

    Do the following queries:

    select sid from master.dbo.sysdatabases where name = "mydbname"

    select * from master..syslogins where name = 'sa'

    If the sid of the first query matches the sid of the second query, sa is already the owner.

    Also, that stored procedure you are trying to run should NOT be run for sa, since you would have to remove sa as a user in the database first.

    Go edit the 'sa' user login, click on the database access, and make sure that sa has db_owner in each of the databases.


    ------------
    reddy at 1/10/01 4:41:32 PM

    Hi All,

    I want to change the OWNER of the database to 'sa' and I executed the
    following system stored procedure

    EXEC sp_changedbowner 'sa'

    and I get the following error message..

    Server: Msg 15110, Level 16, State 1, Procedure sp_changedbowner, Line 46
    The proposed new database owner is already a user in the database.

    Any ideas
    Thanks
    Reddy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •