摘要:
USE mydata; SELECT s.name FROM sys.schemas s WHERE s.principal_id= USER_ID('developer'); --将db_owner Schema的Owner改为dboALTER AUTHORIZATION on SCHEMA::db_owner TO dbo; ---再次查询用户test6拥有的Schema为空 SELECT s.name FROM sys.schemas s WHERE s.principal_id= USER_ID('developer'); --删除用户test6 DRO 阅读全文