You need to write a procedure for doing the update likeCREATE PROC ModifyValues@qty int,@price decimal(10,2),@col1 intASUPDATE yourTableSET col5 = @price,col4 = @qtyWHERE col1=@col1GO
and a trigger to capture the changed values asCREATE TRIGGER GetDataUpdatesON YourTableFOR UPDATEASBEGININSERT INTO table2SELECT col1, col2, col3, col5,'oldval',GETDATE()FROM DELETEDUNION ALLSELECT col1, col2, col3, col5,'updates',GETDATE()FROM INSERTEDEND
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs