Returns a description of an audit event.
audit_event_name(event_id)
is the number of an audit event.
Queries the audit trail for table creation events:
select * from audit_data where audit_event_name(event) = "Create Table"
Obtains current audit event values. See the Usage section below for a complete list of audit values and their descriptions.
create table #tmp(event_id int, description varchar(255)) go declare @a int select @a=1 while (@a<120) begin insert #tmp values (@a, audit_event_name(@a)) select @a=@a + 1 end select * from #tmp go
----------------------------------------- event_id description --------- ------------------- 1 Ad hoc Audit Record 2 Alter Database ... 104 Create Index 105 Drop Index
The following lists the ID and name of each of the 111 audit events:
|
|
|
Adaptive Server does not log events if audit_even_name returns NULL.
ANSI SQL – compliance level: Transact-SQL extension.
Any user can execute audit_event_name.
Copyright © 2005. Sybase Inc. All rights reserved. |