When doing an update to several records at one time the following trigger will fire on only 1 record. Consequently I have to use a cursor to update each individual record separately.
Is there a way to update through a set statement that will fire the trigger for all records being updated?
Thanks
Leon
Code:
ALTER TRIGGER Repl_Starts_Trigger1
ON dbo.Repl_Starts
FOR UPDATE
AS
DECLARE @Pd integer
DECLARE @Tm_G varchar(8)
DECLARE @Tm_C varchar(8)
SELECT @Pd = PID FROM INSERTED
SELECT @Tm_G = GunStart FROM INSERTED
SELECT @Tm_C = ChipStart FROM INSERTED
EXEC usp_Starts @Pd=@Pd, @Tm_G=@Tm_G, @Tm_C=@Tm_C
Thanks
Leon