Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Nascondere i database per un accesso su Microsoft Sql Server 2008R2 e versioni successive

USE master;
GO
DENY VIEW ANY DATABASE TO [newlogin]; 
GO
USE yourDB;
GO
DROP USER newlogin;
GO
USE master;
GO
ALTER AUTHORIZATION ON DATABASE::yourDB TO [newlogin];
GO

Raj