On update of table in MSSQL i want to perform a certain task.
Now i have update trigger in place for the required table and my task(script) runs when a record is updated.
Now when user saves an existing record from web, my update trigger executes the task i have written. But when the user saves from the web page without modifying any record that time the update trigger would not work, as no records are modified.
I would want to trigger my script even if no record is modified. How can i do it?
I think you have to use a INSTEAD OF UPDATE trigger. By default triggers AFTER UPDATE. But then you have to set the update statement inside the trigger. For more information,
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.