SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Restrict user to access certain tables in the data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ahmjy001
Starting Member

1 Posts

Posted - 07/22/2012 :  23:06:31  Show Profile  Reply with Quote
Hi,

Can anyone please help me with the sql permission issue.
I have a database on sql server 2008 and I want to restrict a user(s) to access some tables in the database.

Regards,

visakh16
Very Important crosS Applying yaK Herder

India
47956 Posts

Posted - 07/23/2012 :  00:42:23  Show Profile  Reply with Quote
create a role that has access only to required tables in database and assign required users to it

For creating role use CREATE ROLE

http://msdn.microsoft.com/en-us/library/ms187936.aspx

for giving access to table use GRANT..

and for adding uses use sp_addrolemember

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000