sp_changeobjectowner question

  • Can I change owner of another database table from different database on the same server.

    Let's say, I have two databases d1 and d2, I am trying to run following from d1. Is it possible? 

    sp_changeobjectowner 'd2.x.table1'  'y'

    changing ownership 'x' to 'y' on d2 database from d1 database in query analyzer

  • No. As the BOL says:

    sp_changedbowner

    Changes the owner of the current database.

    -SQLBill

Viewing 2 posts - 1 through 1 (of 1 total)

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