Viewing 6 posts - 16 through 21 (of 21 total)
I wish I could do that but I was ordered by the management and the senior DBA to have a post deployment script in place.Any work arounds? or non recommended...
April 21, 2011 at 10:21 pm
The code which worked for me is extremely simple.
ALTER TRIGGER [dbo].[trg_History] ON [dbo].[Amount]
FOR UPDATE
AS
INSERT INTO History
(ID,
Amount1,
Amounttype
)
SELECT
ID,
Amount1,
Amounttype
FROM
deleted
March 18, 2011 at 2:46 pm
Sean,
I apologize for my previous post. The deleted works perfectly. Thanks you very much.
And thank you Steve..
March 17, 2011 at 10:25 am
I used the inserted and deleted but the inserted row always has the new values rather than the old value. Not sure what I am doing wrong. It can't be...
March 17, 2011 at 9:47 am
Hi Gail,
I just want to hold the changes of the row. If the row has no change then I don't want to populate the History table. Thats the reason when...
March 17, 2011 at 9:31 am
Thanks for your reply. I was trying to work with what to told and I still have the same problem. The trigger works but the row insertion is done after...
March 17, 2011 at 7:54 am
Viewing 6 posts - 16 through 21 (of 21 total)