?
Solved

Ability to restrict user access to certain tables?

Posted on 2002-06-04
3
Medium Priority
?
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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 learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

764 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