USE mydata; SELECT s.name FROM sys.schemas s WHERE s.principal_id= USER_ID('developer'); --将db_owner Schema的Owner改为dbo ALTER AUTHORIZATION on SCHEMA::db_owner TO dbo; ---再次查询用户test6拥有的Schema为空 SELECT s.name FROM sys.schemas s WHERE s.principal_id= USER_ID('developer'); --删除用户test6 DROP USER developer
转载于:https://www.cnblogs.com/ricksun/articles/3091268.html