I’m using Sqlserver express and I can’t do before updated trigger. There’s a other way to do that?
I’m using Sqlserver express and I can’t do before updated trigger. There’s a other
Share
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.
MSSQL does not support
BEFOREtriggers. The closest you have isINSTEAD OFtriggers but their behavior is different to that ofBEFOREtriggers in MySQL.SQL Server offers DML triggers
DML trigger statements use two special tables: the
deletedandinsertedtables.Note
From the now offline documentation
You can learn more about types of dml triggers here
Thus, actions on the update may not take place if the trigger is not properly written/handled. Cascading actions are also affected.
You may instead want to use a different approach to what you are trying to achieve.