Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

db_datareader - access to all tables/views

Posted on 2010-08-24
3
Medium Priority
?
673 Views
Last Modified: 2012-05-10
will the db_datareader role give an user to able to select all tables and views by default? or not yet?

thanks
0
Comment
Question by:anushahanna
3 Comments
 
LVL 9

Accepted Solution

by:
rg20 earned 1000 total points
ID: 33517258
Anushahanna,

If you are looking for different opinions, I salute you, but please let me know so I don't keep injecting in your questions.

The way this works is you create a new database user.  This user will have to be granted the right to read the view by you.  

Once you grant that right, they will be able to query ONLY the view you specify.

try this link
http://www.sqlnewsgroups.net/group/microsoft.public.sqlserver.server/topic6253.aspx
0
 
LVL 57

Assisted Solution

by:Raja Jegan R
Raja Jegan R earned 1000 total points
ID: 33517324
yes, db_datareader role gives SELECT rights to all Tables and views by default.
Or in other words, granting db_datareader role implicitly grants SELECT rights on tables and views.
0
 
LVL 6

Author Comment

by:anushahanna
ID: 33517566
appreciate your input. Thanks experts.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

972 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question