I have created a database in SQL Server 2008 and it shows in server object explorer to all users that can login to SQL.
I want to hide it from those users, I want it to be viewable by me only.
How can I do that? Any help, suggestions?
Many thanks
I have created a database in SQL Server 2008 and it shows in server object explorer to all users that can login to SQL.
I want to hide it from those users, I want it to be viewable by me only.
How can I do that? Any help, suggestions?
Many thanks
Try this: In SQL Server Management Studio, right click the server and click "Properties". Click on "Permissions" and then select the "Public" role and remove "Grant" from "View Any Database".
USE master; GO
DENY VIEW ANY DATABASE TO [loginname]; GO
USE [your db]; GO
DROP USER [loginname]; GO
USE master; GO
ALTER AUTHORIZATION ON DATABASE::[your db]TO [loginname]; GO
DbDefence can hide database schema from anyone including DBA. It's completely free for SQL Server 2008 without limits.
I'm associated with the vendor. Hope its not advertising because the product is free.