Last active
December 5, 2017 01:49
-
-
Save samirbehara-zz/72b8cdc5b1cefb167083e42042baa6de to your computer and use it in GitHub Desktop.
List of all Security Audit Events from SQL Default Trace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--List all Security Audit Events | |
DECLARE @id INT; | |
SELECT @id = id | |
FROM sys.traces | |
WHERE is_default = 1; | |
SELECT DISTINCT eventid AS 'EventID' , | |
name AS 'Event Name' | |
FROM fn_trace_geteventinfo(@id) GEI | |
JOIN sys.trace_events TE ON GEI.eventid = TE.trace_event_id | |
WHERE name LIKE '%Audit%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment