Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Ability to restrict user access to certain tables?

Posted on 2002-06-04
3
Medium Priority
?
393 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
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
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

604 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