| re: How do you lock table (or view) fields from editing???
"Richard Holliingsworth" <william.r.hollingsworth@boeing.com> wrote in
message news:HJoJHt.3t7@news.boeing.com...
Helmut you are close. I went to the table/view and right clicked and got a
menu. From the "All Tasks" selection, I got another menu that included
"Manage permissions" not "Manage Grants"
I selected that option and got the user permissions for the table but NOT
for the columns
So, I still cannot lock fields (columns) on a table/view.
The first responder misunderstood my question. I am not trying to lock the
users from the table/view. They MUST be able to edit certain fields bot NOT
all of them. So I must be able to lock fields from update, NOT the whole
table.
Thanks for any other guidance.
Richard
I may have misled you by not mentioning that GRANT/REVOKE can be applied to
columns as well as to entire tables (although only SELECT/UPDATE apply at a
column level, of course). The Enterprise Manager functionality that Helmut
described is simply a graphical interface to GRANT/REVOKE. I don't have
SQL7, but the SQL2000 permissions screen has a button at bottom left called
'Columns', which allows you to manage column level permissions.
In Query Analyzer you would do something like this:
grant select on dbo.MyTable (col1, col2, col3) to MyRole
grant select, update on dbo.MyTable (col4, col5) to MyRole
Simon |