Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 remove schema ownership

Author  Topic 

bbxrider
Starting Member

37 Posts

Posted - 2010-04-07 : 21:13:55
this is actually 2005 studio express, and am not sure at this point what the differences are but hopefully same for this issue.
i added the aspnet user for some testing and mistakingly gave permissions for the schemas as well as tables. now i want to remove those schema permissions but they are displayed with a green box instead of a check and can't remove them. i see that i can change it to another user such as dbo but is that the solution? since i'm new to sql server i'm not sure about the consequences of that. the original db was created by visual studio for a login control and the orig didn't have any users as schema owners and i would like to get back to that state.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-07 : 21:59:48
Yes transfer it to dbo.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

bbxrider
Starting Member

37 Posts

Posted - 2010-04-08 : 02:37:03
and then thats it? just leave it that dbo now owns schemas? and there is no way to ever get the schemas from being owned by some user? when vs creates this db (to implement login security) it did not set dbo to be the owner of anything, that i have seen so far, its ok to just change all that around?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-04-08 : 13:21:28
We always use dbo. We have no need for other schemas.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

chewtoy
Starting Member

1 Post

Posted - 2010-10-14 : 17:59:08
If memory serves me, these Schemas by default actually own themselves. In other words, if you select the database in question, and expand the Security node, and then the Schemas node, you can view properties on each Schema for that db. Once in the properties page for a Schema, you can change the owner to itself, thereby "removing" the owner you accidentally set in the first place.

Tara: If we always use dbo, then why have schemas in the first place?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-10-14 : 18:02:47
quote:
Originally posted by chewtoy


Tara: If we always use dbo, then why have schemas in the first place?



I ask that same question sometimes.

It was added to be more like Oracle, but I don't think it's been adopted much in the SQL Server community.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -