In order to get around this we need to do the following:
1. Ensure the user is setup but is not mapped to the database yet.
2. Remove the ability to view all databases for this user (or role)
In Management Studio, right click the server then click "Properties". Click on "Permissions" and then select the particular user and select "Deny" on "View Any Database".
3. Change the owner of the database to this user
USE db_name
GO
EXEC sp_changedbowner 'user_name'
GO
0 comments:
Post a Comment