SQL Server make Column data undeletable

711 views Asked by At

I am using SQL Server 2008 R2. I want to make a column data undeletable. Is it possible to make the data undeletable without using Triggers? If it is, please let me know.

1

There are 1 answers

0
sticky bit On

You can GRANT/REVOKEon column level.

REVOKE UPDATE ON elbat (nmuloc) FROM <role/user>;

Like this the respective role/user cannot update nmuloc in elbat anymore. (And set it to NULL which I assume is what you mean by deleting "column data".)