Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Database Owner Expand / Collapse
Author
Message
Posted Tuesday, March 01, 2011 3:23 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!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...
Post #1071072
Posted Tuesday, March 01, 2011 4:41 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, March 14, 2014 2:19 AM
Points: 2,820, Visits: 3,916
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
Post #1071112
Posted Tuesday, March 01, 2011 5:50 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-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
Post #1071133
Posted Tuesday, March 01, 2011 5:57 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 12:01 PM
Points: 12,744, Visits: 31,074
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
Post #1071140
Posted Tuesday, March 01, 2011 6:17 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!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...
Post #1071160
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse