Trigger
I have the following trigger
CREATE TRIGGER trLogActivity
ON ClassesTest
FOR INSERT, UPDATE, DELETE
AS
insert into TblLogActiveTable (TableName, DeleteOrTruncateDateTime)
Values ('tablename', getdate())
What I want to do is to log the activity of the ClassesTest table. My question is how can I log the table name?
Hope my question is clear to you all.
Thanks.
|