문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top