MS SQL TRIGGER TO SAVE QUERY
Budget: $10 – $30 USD
i need to create a trigger to log the query that was run for a table
like this https://www.vitoshacademy.com/sql-server-create-trigger-to-log-changes-in-db/
but all i need is datetime and query
like
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
DELETE FROM table_name WHERE condition;
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;
like this https://www.vitoshacademy.com/sql-server-create-trigger-to-log-changes-in-db/
but all i need is datetime and query
like
INSERT INTO table_name (column1, column2, column3, ...)
VALUES (value1, value2, value3, ...);
DELETE FROM table_name WHERE condition;
UPDATE table_name
SET column1 = value1, column2 = value2, ...
WHERE condition;