I’m trying to create a custom delete rule on a relationship between a parent and a child table. What I’d like to do is to apply cascade delete on the child if the child’s column ‘IsActive’ is set to false and to apply ‘NoAction’ rule if this column is set to true. How can I do this?
Share
Based on your comments, you could write a trigger on your table that would be something like this: