Link to home
Start Free TrialLog in
Avatar of AhmedHindy
AhmedHindyFlag for Egypt

asked on

sql server table access restriction

hello ,
i want to create table in sql server but restrict access to sa only
other users can only insert in this table
Avatar of Daniel_PL
Daniel_PL
Flag of Poland image

All logins in sysadmin server role (including SA) are granted access to all tables in all databases.
After creating a table I suggest you to create your own database role, grant that role insert priviledge. Then add all your logins as database users in your newly created database role.

Some resources:
http://sqlserverpedia.com/wiki/Database_Roles
http://msdn.microsoft.com/en-us/library/ms189121%28v=SQL.100%29.aspx
http://www.mssqltips.com/tip.asp?tip=2038
ASKER CERTIFIED SOLUTION
Avatar of Daniel_PL
Daniel_PL
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial