Change dbowner

  • ramyours2003

    SSChampion

    Points: 12184

    Can we change the dbowner to system databses ? if yes how can we proceed?

  • ramyours2003

    SSChampion

    Points: 12184

    in sql 2005/sql2008

  • Grant Fritchey

    SSC Guru

    Points: 396716

    Nope.

    System databases and system objects are managed by the system. That's it.

    ----------------------------------------------------
    The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
    Theodore Roosevelt

    The Scary DBA
    Author of: SQL Server 2017 Query Performance Tuning, 5th Edition and SQL Server Execution Plans, 3rd Edition
    Product Evangelist for Red Gate Software

  • Jeff Moden

    SSC Guru

    Points: 997215

    ramyours2003 wrote:

    Can we change the dbowner to system databses ? if yes how can we proceed?

    First, see Grant's reply.

    Second, I have to ask... why would you want to/need to do such a thing?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".
    "Dear Lord... I'm a DBA so please give me patience because, if you give me strength, I'm going to need bail money too!"

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

  • ramyours2003

    SSChampion

    Points: 12184

    As we  renamed sa login to anothet name and want to change the dbowners of all databases  but later versions like 2o12 onwards  dbowner of sys databases are changed , may i know thereason ?

  • Jeff Moden

    SSC Guru

    Points: 997215

    ramyours2003 wrote:

    As we  renamed sa login to anothet name and want to change the dbowners of all databases  but later versions like 2o12 onwards  dbowner of sys databases are changed , may i know thereason ?

    Is that a typo?  Do you mean that the dbowner of system database are NOT changed?  The answer to that question is as Grant has stated it.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
    "Change is inevitable... change for the better is not".
    "Dear Lord... I'm a DBA so please give me patience because, if you give me strength, I'm going to need bail money too!"

    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

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

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