简体   繁体   中英

Permission to update single column in SQL Server table

How to create a permission to update a specific column in SQL Table.

This is my scenario - Created a user in DB with Read only permission (only select command work) and I want to create new permission to update a column for a specific SQL table.

Appreciated your help.

Regards
Abdul

Pretty sure you'd just GRANT the permissions like this:

GRANT UPDATE ON dbo.TableName (Col1, Col2, Col7) TO YourUsersName;

Assuming dbo.TableName has 7 columns, Col1-Col7, the above statement will give the user permission to update Col1, Col2, and Col7, but not Col3, Col4, Col5, or Col6.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM