Unable to change object owner

  • Hi

    In my db I am having 2 tables with name x.

    one table x owner is a and other is dbo.now i changed the name of a.x to a.x_old.

    now i executed sp_changeobjectowner 'a.x_old',dbo.

    I got the error.

    Server: Msg 15505, Level 16, State 1, Procedure sp_changeobjectowner, Line 63

    Cannot change owner of object 'citidocsdba.NG_D32_INDEX_TABLE_old' or one of its child objects because the new owner 'dbo' already has an object with the same name.

    pls help

  • The error message is self-explanatory. The new owner already has an object with the same name. in your case there is already an object x_old owned by dbo.



    Pradeep Singh

  • No there is no table with that name with dbo I checked.

  • can u run this query and let us know the results..

    select name, xtype from sysobjects where name='x_old'



    Pradeep Singh

  • are there indexs or triggers on the tables? you might need to change the name of them aswell?

  • Thanks.

    I got the solution

  • great!! Can u share what u did?



    Pradeep Singh

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply