提交之前的T-SQL触发器在某些表上显示警告

时间:2017-09-19 16:05:09

标签: sql-server tsql

想要在插入或更新某些敏感表之前显示警告。看了这些问题(TSQL: Trigger on Commit),但我想实现与此类似的东西:

CREATE TRIGGER Sales.bonus_reminder  
ON Sales.SalesPersonQuotaHistory  
WITH ENCRYPTION  
AFTER INSERT, UPDATE   
AS 
     RAISERROR ('Notify Compensation', 16, 10);  
GO

0 个答案:

没有答案