How to make a table Read Only in SQL Server?

前端 未结 3 1095
天涯浪人
天涯浪人 2020-12-08 08:02

I am updating some set of records in that table, after that I need to make this table read only.

So how to make a table Read Only in SQL Server?

3条回答
  •  南方客
    南方客 (楼主)
    2020-12-08 08:22

    If you want it as read only to the general public, but still want to be able to edit the table at a later date, you may want to consider creating multiple users for the database and granting different permissions to that database - ideally you should be doing this anyway and not allow the general public access to alter table, truncate etc.

提交回复
热议问题