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.*

Comments

Popular posts from this blog

IBM FileNet: Bulk Processing using JavaScript

DB2 Date Time Functions

File Net Insert Document