Hi Frnds,
I wrote an simple AFTER UPDATE trigger, i just wanted to amke a try to GET THE VALUES FROM THE DELETE (table created virtually during the update process), plz help me
Create Trigger num on dbo.Number
After Update
AS
Declare @s-2 varchar(50)
BEGIN
select @s-2 = (select a from deleted)
insert into number (a) values (@s)
END
*****select * from number ***********
A B C
------------------------
123
456
My update statement will be like,
update number set b = 5 where c = 6
I guess, trigger is not getting fired, can u tel me wats the problem here ?