Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

Ocultando bancos de dados para um logon no Microsoft Sql Server 2008R2 e superior

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