Hi all,
I want to save the DML action on this table to a Log table. Do you know how I can determine what DML-Action was triggered? INSERT, UPDATE OR DELETE?
Any hint is welcome, thanks.
CREATE TRIGGER ListenToEventsOnUsers on A_Users
AFTER INSERT, UPDATE, DELETE
AS
INSERT A_Log
(DBUser, ActionType, LoggedObject)
VALUES (CURRENT_USER, ACTIONTYPE , 'A_Users')
I want to save the DML action on this table to a Log table. Do you know how I can determine what DML-Action was triggered? INSERT, UPDATE OR DELETE?
Any hint is welcome, thanks.
CREATE TRIGGER ListenToEventsOnUsers on A_Users
AFTER INSERT, UPDATE, DELETE
AS
INSERT A_Log
(DBUser, ActionType, LoggedObject)
VALUES (CURRENT_USER, ACTIONTYPE , 'A_Users')