Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

Server Level Trigger Auditing

$
0
0
I created a Server Level Trigger to capture events at my sql server. Is there a way to capture an event when someone disables this trigger?I know limiting access to sysadmin is simple solution but we have some situations that is not possible so I am wondering if there is a way to capture event or send notification when a Server level trigger is disabled or enabled?[code="sql"]Create trigger [ServerAuditTrigger]on all serverwith execute as 'sa'for DDL_EVENTS asbegininsert into tableselect eventdata()endgo[/code]

Viewing all articles
Browse latest Browse all 6525

Trending Articles