如何为所有用户禁用更新表 [英] How can I disable update table for all user
本文介绍了如何为所有用户禁用更新表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 SQL Server 2008 R2 并且有一张我不想让任何人更新的表,换句话说,我想禁用该表的更新.为此我知道两种方法,第一种是使用 而不是 update
触发器来阻止更新,第二种是使用权限.
I use SQL Server 2008 R2 and have a table that I want no one to update, in other words I want to disable updates on this table. For this purpose I know two methods, first is to use instead of update
trigger to prevent update and second is to use permissions.
我想为此找出最佳做法.
I want to figure out best practices for this purpose.
编辑 1:我想拒绝所有用户的更新.
EDIT 1: I want to deny update for all user.
推荐答案
恕我直言,使用权限禁用对表的更新可能是最好的方法.
IMHO, using permissions to disable updates to a table is probably the best way to go.
这篇关于如何为所有用户禁用更新表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文