日期:2014-05-17 浏览次数:20811 次
CREATE TRIGGER [InsteadOfDelete] ON [dbo].[g_Grade]
AFTER INSERT, UPDATE , DELETE
AS
DECLARE @AppName Nvarchar(10)
DECLARE @GradeID INT
SET @AppName = App_Name()
IF ( @AppName <> 'ClEas' )
begin
raisError('无权', 16, 1);
rollback tran
end