Solved

Ability to restrict user access to certain tables?

Posted on 2002-06-04
3
387 Views
Last Modified: 2008-03-06
Hi,

Does MS SQL Server 2000 have the ability to limit user access to certain tables in a database?

We have a client that is connecting to our db using VPN and loading data into some tables and retrieving data from other tables.  What we want to do is restrict them from seeing any other tables in our database.

Is this possible?  If so, how?

thanks
0
Comment
Question by:bsmiley
  • 2
3 Comments
 
LVL 5

Expert Comment

by:spcmnspff
ID: 7054561
Yes, this is possible.  If you add the user to the database but add them to any database roles, the user will not be able to select from any tables by default.  Now you can control permissions at the table level by granting them select permissions on certain tables

GRANT SELECT ON Table1 TO domain\user

or if your using a sql server login for the user:

GRANT SELECT ON Table1 TO userlogin

I imagine that your current configuration is such that the user has permissions to all the tables by virtue of membership to some server/database role - i.e. db_datareader. If so, you'll have to remove the user from that role first.
0
 
LVL 5

Accepted Solution

by:
spcmnspff earned 100 total points
ID: 7054562
Sorry let try that again:


Yes, this is possible.  If you add the user to the database but DON'T add them to any database roles, the
user will not be able to select from any tables by default.  Now you can control permissions at the
table level by granting them select permissions on certain tables

GRANT SELECT ON Table1 TO domain\user

or if your using a sql server login for the user:

GRANT SELECT ON Table1 TO userlogin

I imagine that your current configuration is such that the user has permissions to all the tables by
virtue of membership to some server/database role - i.e. db_datareader. If so, you'll have to remove
the user from that role first.
0
 

Author Comment

by:bsmiley
ID: 7054589
Thanks!

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

829 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