标签: 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