Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 15264

Trigger Inserted and Updated Table

$
0
0

Hi Team,

I have a vendor application where a table with 1 million rows get updated without a where condition (all rows). This table is having an update/insert/delete trigger.

Inside the trigger there is TQL statement as below

 Select @NLCount=Count(*) from deleted where NLstatus=1

The update statment is taking 5 to 6 hours, stuck in the above statement with in the trigger.

can somebody help me please?

if i disable the trigger, the update finish in 7 mins


Viewing all articles
Browse latest Browse all 15264

Trending Articles



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