https://msdn.microsoft.com/zh-cn/library/ms189077(v=sql.105)
--查看权限 SELECT l.name as grantee_name, p.state_desc, p.permission_name FROM sys.server_permissions AS p JOIN sys.server_principals AS l ON p.grantee_principal_id = l.principal_id WHERE permission_name = 'VIEW ANY DATABASE' ; GO
--同意或拒绝查看其它数据库 --GRANT VIEW ANY DATABASE TO user_school; DENY VIEW ANY DATABASE TO user_school;
--给用户赋权限 ALTER AUTHORIZATION ON DATABASE::schoolDb_Copy TO user_school
学习交流群:364976091