Results 1 to 4 of 4

Thread: Changing DB owner from Kate to Bob, but Kate owns objects

  1. #1
    Join Date
    Oct 2002
    Posts
    92

    Changing DB owner from Kate to Bob, but Kate owns objects

    Im having trouble changing the DB owner from Kate to Bob, because Kate owns some objects in the DB.
    I first try to run sp_changedbowner Bob....but it tells me:
    The proposed new database owner is already a user in the database.

    When I run scripts on a table that such as;
    sp_changeobjectowner 'customers', 'Bob'...I get the message of

    Server: Msg 15001, Level 16, State 1, Procedure sp_changeobjectowner, Line 38
    Object 'customers' does not exist or is not a valid object for this operation.


    Please help with what I can do.

    Thank you

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    you should use sp_changeobjectowner 'kate.customers','bob'

  3. #3
    Join Date
    Sep 2002
    Posts
    5,938
    You have to drop user bob first, it's ok for kate to own objects in the db.

  4. #4
    Join Date
    Oct 2002
    Posts
    92
    ok, got it..thank you

Posting Permissions

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