Click here to Skip to main content
15,893,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to restrict user to access my table?i want to give them read only permission?
plz help!
Posted
Updated 26-Oct-12 3:40am
v2

Set the permissions on that table for the user, using the UI for SQL Server or GRANT/REVOKE statements (see here[^]).
 
Share this answer
 
You need to give just SELECT permission. Revoke all permissions of the user and GRANT SELECT :
SQL
USE AdventureWorks2012;
REVOKE ALL ON Person.Address TO RosaQdM;
GRANT SELECT ON Person.Address TO RosaQdM;
GO
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900