Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL Trigger does not wait for the Insert to complete

$
0
0

I am using After Insert Trigger on a specific Table.

Now the Insert Statement to this table takes arround 60.000msec to complete.

In Profiler I noticed that the Trigger is executed right after the Insert Query starts and not after it is compelted. Is there a way to execute the Trigger when the Insert Query is completed?

The Issue is that the Table is blocked for that time when the insert query runs and the Trigger does not get the proper inserted values.

Thanks,



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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