Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Granting Column Permissions to Role

Status
Not open for further replies.

BillMoo

Programmer
Oct 6, 2010
2
GB
Hi,

I want to be able to restrict the updates done to various columns within a table to a role, so the permissions apply to all users within the role.

This table resides in a Schema called Test but using either:
Code:
GRANT INSERT, UPDATE ON [Test].[TestTable](Stuff1, Stuff3) TO [Testers]
GO
or
Code:
GRANT INSERT, UPDATE ON [Test].[TestTable](Stuff1, Stuff3) TO [TestUser1]
GO
Produces this error:
Code:
Msg 1020, Level 15, State 1, Line 0
Sub-entity lists (such as column or security expressions) cannot be specified for entity-level permissions.
But as I read the documentation what I am trying to do is syntactically correct.

The Schema, Role, User, Table and Columns do already exist.

I'm quite confused now.

Can anyone point me in the right direction with this please.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top