Dette ligner et job for en kontrolbegrænsning, ikke en trigger:
ALTER TABLE [dbo].[ObjectRelationClauses]
ADD CONSTRAINT foreign_chk CHECK
([ForeignPropertyId] IS NOT NULL OR [ForeignValue] IS NOT NULL);
Dette ligner et job for en kontrolbegrænsning, ikke en trigger:
ALTER TABLE [dbo].[ObjectRelationClauses]
ADD CONSTRAINT foreign_chk CHECK
([ForeignPropertyId] IS NOT NULL OR [ForeignValue] IS NOT NULL);