Never in the field of human conflict was so much owed by so many to so few. All our hearts go out to the developers, whose brilliant actions we see with our own eyes day after day…
Translate
Thursday, August 16, 2012
Change schema owner, delete user
SELECT s.name FROMsys.schemas s WHEREs.principal_id =USER_ID('user_name') ALTERAUTHORIZATIONONSCHEMA::[found_object_above] TO [dbo] IFEXISTS(SELECT*FROMsys.database_principalsWHERE name =N'user_name') DROPUSER [user_name]