As we know that sql trigger get called implicitly.
I am just wondering is it possible to call trigger explicitly in sql server?
if yes, than how?
Thanks
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.
I suppose it depends on what you mean by calling the trigger explicitly.
You can cause a trigger to fire with no data changes to the underlying table:
With the result:
That being said, it’s a bit of a cheat, and in common with @Mitch Wheat, I’m wondering why you’d attempt to do this. If “explicitly calling the trigger” is part of your solution to a problem, then a) It’s probably the wrong solution, and b) We might be able to suggest a better one, if we know what the problem is.