When recursions on triggers is enabled in SQL Server and I update the same table within an after trigger, when is the nested (recursive) trigger executed:
- Within execution of the source trigger?
- When the original trigger has finished it’s work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Output
Conclusion: The child trigger fires when the DML statement in the parent trigger is executed then control is returned back to the parent trigger which can potentially execute additional code after the DML statement.