Database Owner

  • Hi,

    I'm wondering if someone could explain what the difference is between the Database Owner and a database user that is a member of the db_owner database role in all aspects.

    For example, say usr1 is the database owner specified in the database properties for DB1 and usr2 is a member of db_owner database role on DB1.

    All I could figure was that the database owner becomes the member of the db_owner role that makes sense. So what can usr1 do that usr2 cannot?

    __________________________
    Allzu viel ist ungesund...

  • db_owner itself known as database owner.

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Hi Holio,

    db_owner is database level role means person having the db_owner permission means he can able to do any thing in the particular database ..db_owner and database owner both indicates the same thing as per my knowledge..

    Thanks

    rekha

  • In addition to what others have said...

    db_owner is a role, so you could have lots of users as members of that role...and as previously stated, they can do anything to the database and it's objects.

    the database owner is the single user that has been identified as the USER that owns the database...that user would be in the db_owner role, but it adds just a bit more to it

    when you start looking at the objects in the database...the tables and such.....a user that owns objects cannot be dropped...so if you wanted to drop that user, you need to make a different user own the objects(or drop all the objects) first.

    by default, the database owner is dbo, which cannot be dropped, and it's a special user. but if you make a user 'bob', and make him database owner, and have that user create objects....then you cannot drop the user 'bob' until that user no longer owns objects....usually by transferring the object ownership to dbo.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • Lowell, this is what I wanted to hear. I assumed both the database owner and the db_owner role members have pretty much the same permissions on a specific database but was unsure about the differences. Thanks for your time.

    Now I'm curious why anyone should change the database owner rather than adding the specific user to the db_owner database role. Has anyone encountered such a need?

    __________________________
    Allzu viel ist ungesund...

Viewing 5 posts - 1 through 4 (of 4 total)

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