Question

I want to insert/update record with a specific stored-procedure which performs some business-logic on new record values. I can do this by trigger to ignore new record from directly to be inserted and pass new record values to my stored-procedure to perform appropriate action for passed values?

Was it helpful?

Solution

In general, once you're working within a trigger, you need to perform all of your actions as part of the body of the trigger, rather than calling other code in e.g. a stored proc.

This is because the inserted and deleted "logical tables" only exist within the context of the trigger.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top