SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Database Owner


Database Owner

Author
Message
Mr. Holio
Mr. Holio
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1721 Visits: 2559
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...
Bhuvnesh
Bhuvnesh
One Orange Chip
One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)One Orange Chip (29K reputation)

Group: General Forum Members
Points: 29256 Visits: 4079
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;-)
geetha@in
geetha@in
Mr or Mrs. 500
Mr or Mrs. 500 (501 reputation)Mr or Mrs. 500 (501 reputation)Mr or Mrs. 500 (501 reputation)Mr or Mrs. 500 (501 reputation)Mr or Mrs. 500 (501 reputation)Mr or Mrs. 500 (501 reputation)Mr or Mrs. 500 (501 reputation)Mr or Mrs. 500 (501 reputation)

Group: General Forum Members
Points: 501 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
Lowell
Lowell
SSC Guru
SSC Guru (165K reputation)SSC Guru (165K reputation)SSC Guru (165K reputation)SSC Guru (165K reputation)SSC Guru (165K reputation)SSC Guru (165K reputation)SSC Guru (165K reputation)SSC Guru (165K reputation)

Group: General Forum Members
Points: 165752 Visits: 41547
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!
Mr. Holio
Mr. Holio
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1721 Visits: 2559
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...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search