|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 5:58 PM
Points: 843,
Visits: 2,558
|
|
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...
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Tuesday, March 26, 2013 8:41 AM
Points: 2,562,
Visits: 3,451
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Thursday, January 19, 2012 4:37 AM
Points: 173,
Visits: 565
|
|
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
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Today @ 5:41 AM
Points: 11,645,
Visits: 27,740
|
|
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
--There is no spoon, and there's no default ORDER BY in sql server either. Actually, Common Sense is so rare, it should be considered a Superpower. --my son
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Friday, May 10, 2013 5:58 PM
Points: 843,
Visits: 2,558
|
|
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...
|
|
|
|