Hi
you will need to use the inserted table.
try something like this
CREATE TRIGGER TEST on dbo.CATEGORY
FOR INSERT, UPDATE
AS
insert into category_audit(category_code, category_name,
date_updated)
select c.category_code, c.category_name, c.date_updated
from category c, inserted i
where c.category_code = i.category_code
GO
on second thoughts you could rpobably just query the inserted tables straight like so:
insert into category_audit(category_code, category_name,
date_updated)
select category_code, category_name, date_updated
from inserted
the inserted table stores the current changed row while the trigger executes so you might be able to avoid the join.
Hope this helps
John