禁止表删除数据

1
2
3
4
5
6
7
create trigger [Tgr_table] on [table] 
instead of delete 
as 
begin
select '禁止對表進行刪除操作' ---将对表delete全部锁定禁止操作 
return;
end