Solved

db_datareader - access to all tables/views

Posted on 2010-08-24
3
659 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 250 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 250 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

828 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