Tim Mackey's Weblog
mostly.Net
|
|
Search
Categories
.Net Compact
.Net General
.Net Windows Forms
Asp.Net
Database
General
Mobile
Outdoors
Windows Server 2003
Archive
January, 2012 (2)
December, 2011 (1)
October, 2011 (1)
January, 2011 (1)
September, 2010 (1)
June, 2010 (2)
May, 2010 (1)
September, 2009 (1)
April, 2009 (1)
March, 2009 (1)
February, 2009 (2)
January, 2009 (1)
December, 2008 (2)
October, 2008 (2)
September, 2008 (1)
August, 2008 (1)
July, 2008 (1)
May, 2008 (2)
April, 2008 (2)
March, 2008 (2)
January, 2008 (4)
December, 2007 (1)
November, 2007 (4)
October, 2007 (3)
September, 2007 (3)
August, 2007 (3)
July, 2007 (5)
June, 2007 (1)
May, 2007 (5)
April, 2007 (4)
March, 2007 (3)
February, 2007 (4)
January, 2007 (3)
December, 2006 (1)
November, 2006 (1)
October, 2006 (3)
September, 2006 (3)
August, 2006 (6)
July, 2006 (2)
April, 2006 (2)
March, 2006 (2)
February, 2006 (4)
January, 2006 (9)
December, 2005 (10)
November, 2005 (3)
October, 2005 (1)
September, 2005 (4)
August, 2005 (6)
June, 2005 (2)
May, 2005 (3)
April, 2005 (3)
March, 2005 (5)
February, 2005 (2)
January, 2005 (3)
December, 2004 (3)
November, 2004 (5)
October, 2004 (3)
September, 2004 (3)
July, 2004 (5)
June, 2004 (3)
May, 2004 (2)
April, 2004 (3)
March, 2004 (7)
Blogroll
Sign In
Sunday, January 11, 2009
SQL 2005 cannot drop user with owned schema
Sunday, January 11, 2009 3:28:04 PM (GMT Standard Time, UTC+00:00) (
Database
)
i notice when i backup a database and restore it to another server, the user IDs are different and i have to delete the users and add them back in to the database. however last time i tried this the drop failed because the user owned a schema. i right-clicked on the user's properties and the tick box for 'db_owner' was shaded in a read only state. so i couldn't delete the user and couldn't remove their schema ownership. took a while to figure out that the way to do this is via the Database > Security > Schemas menu, then change the schema owner back to itself, e.g. db_owner. then the user is free to be deleted.
Comments [2]
| |
Sunday, August 02, 2009 1:38:19 AM (GMT Daylight Time, UTC+01:00)
Thank you so much! I was having the same problem and I was about to go crazy! Your post here saved me hours of pain.
Henry
Monday, January 30, 2012 9:18:56 PM (GMT Standard Time, UTC+00:00)
Thanks. It helps me too.
Alex
Name
E-mail
Home page
Remember Me
Comment (HTML not allowed)
Enter the code shown (prevents robots):
Live Comment Preview