Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Trigger only if changed value IN list

$
0
0

Hi everyone, I'm hoping someone can help as Google has not been my friend. I would have thought that what I am after would be a basic feature so maybe I'm just doing it really badly. I have been able to make a very basic trigger that will update a field in another table if column X is updated, no problems with that. However, I want to be able to only have that trigger fire if the updated value in column X is one of two things, it is at that point that my CRM (Infor) throws me back an error:Row cannot be located for updating. Some values may have been changed since it was last read

Nothing changes in the DB so I have to assume that the trigger is erroring and that the error is being passed back to the CRM. The below is what I have at the moment and it's been altered multiple times so apologies if there is something obvious missing. I...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>