jrara Asked: 2012-03-30 23:07:35 +0800 CST2012-03-30 23:07:35 +0800 CST 2012-03-30 23:07:35 +0800 CST 如何拒绝表的删除权限? 772 有没有办法拒绝用户或角色对特定表的删除权限? sql-server sql-server-2008 2 个回答 Voted Best Answer Alex_L 2012-03-30T23:21:49+08:002012-03-30T23:21:49+08:00 如果您需要防止某些用户删除表,请尝试以下操作: DENY DELETE ON OBJECT::dbo.table_to_deny TO restricted_user; http://msdn.microsoft.com/en-us/library/ms173724.aspx StanleyJohns 2012-03-31T07:19:04+08:002012-03-31T07:19:04+08:00 尝试使用 DDL 触发器 FOR DROP_TABLE: CREATE TRIGGER NO_DROP_TABLE ON DATABASE FOR DROP_TABLE AS PRINT 'Dropping tables are not allowed' ROLLBACK
如果您需要防止某些用户删除表,请尝试以下操作:
http://msdn.microsoft.com/en-us/library/ms173724.aspx
尝试使用 DDL 触发器 FOR DROP_TABLE: