My update trigger on a table looks like this.
CREATE trigger [HumanResources].[tr_update_department]
on [HumanResources].[Department]
for update
as
begin
insert into HumanResources.tbl_Department_audit
select * from deleted;
end
GO
I am basically looking for updated row information in audit table called tbl_Department_audit.
I have tested the the trigger, whenever I am updating a single row in Department table,
two rows with the before update and after update row information inserted in to the tbl_Department_audit.
What I expect is to audit only the one row either before update data or after update data, not both.