I am trying to find out who created an audit (found under Audits) but I don't seem to have any luck. I've already tried many queries such as these:
SELECT *
FROM [sys].[objects]
SELEcT * FROM sys.server_audits
They seem to work for all other objects, but not for audit. I need to know which user created the audit and which user altered it last. sys.server_audits does not help.
Best Answer
A trace isn't a database-level object, so none of those queries you were reading about had any chance. The default trace has this information, though, under event 117 (
AUDIT CHANGE AUDIT EVENT
) - assuming you haven't disabled it and that the audit was created recently enough that it's still there (it's a rolling trace).