1.第一步禁用触发器,
2.更新相关数据
3.开启触发器
案例:
ALTER TABLE dbo.T_Student DISABLE TRIGGER ALL;
UPDATE dbo.T_Student SET FStatus = 1, FAuditingSign = 254, FRemark = N'应付补录' WHERE FCode = '123';
ALTER TABLE dbo.T_Student ENABLE TRIGGER ALL;
1.第一步禁用触发器,
2.更新相关数据
3.开启触发器
案例:
ALTER TABLE dbo.T_Student DISABLE TRIGGER ALL;
UPDATE dbo.T_Student SET FStatus = 1, FAuditingSign = 254, FRemark = N'应付补录' WHERE FCode = '123';
ALTER TABLE dbo.T_Student ENABLE TRIGGER ALL;