SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SQL Server Administration (2012)
 Grant user access to a single Databse
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

33 Posts

Posted - 04/17/2013 :  05:16:01  Show Profile  Reply with Quote
Hi, i have a SQL 2012 server with multiple DBs.
I want to grant a Domain user access to query 1 single DB.
I have granted the user public access to the DB.
When he logs on to SQL management studio he can see all the DBs but has no access to them.
Is there a way to prevent him from seeing all the other DBs?
Is public role the right role if i only want him to be able to query? not delete, modify anything?

James K
Flowing Fount of Yak Knowledge

3856 Posts

Posted - 04/17/2013 :  08:58:00  Show Profile  Reply with Quote
See this thread in regards to preventing the user from seeing databases s/he does not have access to. (No good solutions suggested there) http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=183527

If you want the user to be able to read the tables, add them to the db_datareader role.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000