How to get the records while Inserting, updating and deleting in sql server 2005
There are three default inbuild tables, they are inserted, deleted. For both insert and update commands, the affected values are stored into inserted table and for delete command, the affected values are stroed into deleted . Example for insert. UPDATE Emp SET emp_present=1 output Inserted.* DELETE FROM emp output deleted.*