0
Hello, I am doing the integration between 2 solutions, where I need to detect the change of a table, and, based on the information that is sent I must manipulate another table. I don’t have access to the first solution to make this change herself, based on that premise I had to create a TRIGGER
.
My problem is, when the TRIGGER
is executed, she makes a lock in the table of the 1st solution which is preventing to put the 2nd solution in a production environment... Is there any way to create a TRIGGER
that does not cause a lock, or some other resource that allows me to capture the information in the insertion in the bank and use them without preventing the first solution to work?
If you do the
query
who seeks the information withWITH (NOLOCK)
in theSELECT
you probably won’t have this problem anymore– Sorack
So what query is inside Trigger? Why do I use some of Trigger’s update information to feed another table
– LeandroLuk
You better put the code on
TRIGGER
in order to have an opinion, otherwise the question is too general and there is no way to give you a definitive solution– Sorack