Sometimes you may want to hide SQL Server databases from unauthorized users.(Like hosting firm etc.)
To show SQL databases to only authorized users follow the steps below;
Open New Query;
Execute the command below to remove "view all database(s) right" from public role;
USE master
GO
DENY VIEW any DATABASE TO public
Thsn Execute command below to append users to view and own database
USE database_name
GO
EXEC sp_changedbowner username
Monday, August 24, 2009
Hide SQL Server Database(s)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment