Microsoft SQL Server SQL Trace Audit Events
Microsoft SQL Server SQL trace audit events cover categories such as account management events and application management events.
About the Microsoft SQL Server Audit Events
The Microsoft SQL Server audit events include categories such as account management events and application management events.
This audit event names used in the SQL Server database to their equivalent values in the command_class and target_type fields in the Oracle Database Security Central audit record. The audit events are organized in useful categories, for example, Account Management events. You can use the audit events mapped here to create custom audit reports using other Oracle Database reporting products or third-party tools.
See Also: Oracle Database Security Central Database Schemas for Oracle Database Security Central data warehouse details that may be useful in designing your own reports.
Account Management Events
Account management events track SQL statements that affect user accounts, such as adding logins or changing login passwords. Table 1 lists the Microsoft SQL Server account management events and the equivalent Oracle Database Security Central events.
Table 1 Microsoft SQL Server Account Management Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
|
Audit AddLogin Event |
|
|
|
Audit Database Principal Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Login Change Password Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Login Change Property Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Object Management Event |
|
|
|
Audit Server Principal Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Application Management Events
Application management events track actions that were performed on the underlying SQL statements, such as creating objects. Table 2 lists the Microsoft SQL Server application management events and the equivalent Oracle Database Security Central events.
Table 2 SQL Server Application Management Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
DATABASE OBJECT TAKE OWNERSHIP |
Audit Database Object Take Ownership Event | ALTER |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Schema Object Take Ownership Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
SERVER OBJECT TAKE OWNERSHIP: OBJECT |
Audit Server Object Take Ownership Event | ALTER |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Object:Created Object:Deleted |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Object:Deleted |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Audit Command Events
Audit command events track the use of audit events, such as altering trace events. Table 3 lists the Microsoft SQL Server audit command events and the equivalent Oracle Database Security Central events.
Table 3 SQL Server Audit Command Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
|
Audit Change Audit Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
SERVER ALTER TRACE |
Audit Server Alter Trace Event | ALTER |
TRACE |
EXISTINGCONNECTION |
ExistingConnection | EXISTING |
Any possible target type values associated with certain SQL Trace Audit Events. |
Table 4 lists the Microsoft SQL Server audit command events that are logged in the Windows Event Viewer.
Table 4 SQL Server Audit Command Events Logged in Windows Event Viewer
| Source Event | Severity |
|---|---|
OP ALTER TRACE: START |
10 |
OP ALTER TRACE: STOP |
10 |
Note: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Data Access Events
The data access event tracks SQL transactions. The Data Access Report uses these events. Table 5 shows the Microsoft SQL Server data access source event and the equivalent Oracle Database Security Central event.
Table 5 SQL Server Data Access Audit Event
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
SQL TRANSACTION:BEGIN |
SQL Transaction | TRANSACTION MANAGEMENT |
TRANSACTION |
BATCH COMPLETED |
SQL transaction batch completed | EXECUTE |
DATABASE |
BATCH_COMPLETED_GROUP |
SQL transaction batch completed | EXECUTE |
DATABASE |
See Also: Data Access Report
Exception Events
Exception events track audited error and exception activity, such as background job errors. Table 6 lists the Microsoft SQL Server exception events and the equivalent Oracle Database Security Central events.
Table 6 SQL Server Exception Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
|
Background Job Error |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
BLOCKED PROCESS REPORT |
Blocked Process Report | RAISE |
Any possible target type values associated with certain SQL Trace Audit Events. |
Table 7 lists the Microsoft SQL Server exception events that are logged in the Windows Event Viewer.
Table 7 SQL Server Exception Events Logged in the Windows Event Viewer
| Source Event | Severity | command_class | target_type |
|---|---|---|---|
OP ERROR: COMMIT |
10 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: DB OFFLINE |
10 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: MIRRORING ERROR |
16 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: .NET FATAL ERROR |
16 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: .NET USER CODE |
16 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: PROCESS VIOLATION |
16 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: RECOVER |
21 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: RESTORE FAILED |
21 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: ROLLBACK |
10 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: SERVER SHUT DOWN |
21 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
OP ERROR: STACK OVER FLOW |
16 |
ERROR |
Any possible target type values associated with certain SQL Trace Audit Events. |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Invalid Record Events
Invalid record events track audited activity that Oracle DBSecCentral cannot recognize, possibly due to a corrupted audit record.
These events do not have any event names; they only contain event attributes.
Object Management Events
Object management events track audited actions performed on database objects, such as altering an object. Table 8 lists the Microsoft SQL Server object management events and the equivalent Oracle Database Security Central events.
Table 8 SQL Server Object Management Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
DATABASE OBJECT ACCESS |
Audit Database Object Access Event | ACCESS |
Any possible target type values associated with certain SQL Trace Audit Events. |
DATABASE OBJECT MANAGEMENT:ACCESS |
Audit Database Object Management Event | ACCESS |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Object Take Ownership Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Principal Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
SCHEMA OBJECT ACCESS |
Audit Schema Object Access Event | ACCESS |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Schema Object Management Event |
DROP
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Schema Object Take Ownership Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
SERVER OBJECT TAKE OWNERSHIP: OBJECT |
Audit Server Object Take Ownership Event | ALTER |
Any possible target type values associated with certain SQL Trace Audit Events. |
LOCK:DEADLOCK |
Lock:Deadlock | DEADLOCK |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Lock:Deadlock Chain |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Object:Altered |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Object:Created |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Object:Deleted |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Peer Association Events
Peer association events track database link statements.
These events do not have any event names; they only contain event attributes.
Role and Privilege Management Events
Role and privilege management events track audited role and privilege management activity, such as granting a user access permission. Table 9 lists the Microsoft SQL Server role and privilege management events and the equivalent Oracle Database Security Central events.
Table 9 SQL Server Role and Privilege Management Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
|
Audit Add DB User Event |
|
|
|
Audit Add Login to Server Role Event |
|
|
|
Audit Add Member to DB Role Event |
|
|
|
Audit Add Role Event |
|
|
APP ROLE CHANGE PASSWORD |
Audit App Role Change Password Event | ALTER |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Object GDR Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Principal Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Login GDR Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Object Derived Permission Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Schema Object GDR Event |
|
|
OBJECT PERMISSION |
Audit Object Derived Permission Event | CHECK |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Object GDR Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Scope GDR Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Scope GDR Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
STATEMENT PERMISSION |
Audit Statement Permission Event | VALIDATE |
Any possible target type values associated with certain SQL Trace Audit Events. |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Service and Application Utilization Events
Service and application utilization events track audited application access activity. Table 10 lists the Microsoft SQL Server service and application utilization events and the equivalent Oracle Database Security Central events.
Table 10 SQL Server Service and Application Utilization Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
|
Audit Broker Conversation | EXECUTE |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Broker:Message Undeliverable Broker:Message Undeliverable Broker:Corrupted Message |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
BROKER:ACTIVATION:ABORTED |
Broker:Activation - The activation stored procedure exited with an error. | END |
Any possible target type values associated with certain SQL Trace Audit Events. |
BROKER:QUEUE DISABLED |
Broker:Queue Disabled | DISABLE |
Any possible target type values associated with certain SQL Trace Audit Events. |
RPC STARTED |
Remote procedure call | EXECUTE |
DATABASE |
RPC COMPLETED |
Remote procedure call | EXECUTE |
DATABASE |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
System Management Events
System management events track audited system management activity, such as backup and restore operations. Table 11 lists the Microsoft SQL Server system management events and the equivalent Oracle Database Security Central events.
Table 11 SQL Server System Management Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
|
Audit Add DB User Event |
|
|
|
Audit Backup/Restore Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
CHANGE DATABASE OWNER |
Audit Change Database Owner | ALTER |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Object Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
DATABASE OPERATION:SUBSCRIBE TO QUERY NOTIFICATION |
Audit Database Operation Event | SUBSCRIBE |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Principal Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
DB CONSISTENCY CHECK |
Audit DBCC Event | VERIFY |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Schema Object Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Object Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Operation Event |
UPDATE UPDATE
UPDATE UPDATE |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Principal Management Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Starts and Stops |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Server Starts and Stops Event |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
DATABASE MIRRORING STATE CHANGE |
Database Mirroring State Change | UPDATE | Any possible target type values associated with certain SQL Trace Audit Events. |
|
Database Mirroring Connection |
|
|
|
Mount Tape |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
DATABASE BULK ADMIN |
DB Bulk administration | INSERT |
DATABASE |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Unknown or Uncategorized Events
Unknown or uncategorized events track audited activity that cannot be categorized, such as user-created configurations.
Table 12 Uncategorised Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
ATTENTION |
Attention | RAISE |
Any possible target type values associated with certain SQL Trace Audit Events. |
ERROR LOG |
ErrorLog | WRITE |
Any possible target type values associated with certain SQL Trace Audit Events. |
EXCEPTION |
Exception | RAISE |
Any possible target type values associated with certain SQL Trace Audit Events. |
OLEDB ERRORS |
OLEDB Errors | RAISE |
Any from Possible Target Types Values Associated With Certain SQL Trace Audit Events |
EXECUTION WARNINGS:QUERY WAIT |
Execution warnings | WAIT |
QUERY |
EXECUTION WARNINGS:QUERY TIMEOUT |
Execution warnings | DML |
QUERY |
SORT WARNINGS:SINGLE PASS |
Sort Warnings | ACCESS |
QUERY |
SORT WARNINGS:MULTIPLE PASS |
Sort Warnings | ACCESS |
QUERY |
MISSING COLUMN STATISTICS |
Missing Column Statistics | ACCESS |
Any possible target type values associated with certain SQL Trace Audit Events. |
MISSING JOIN PREDICATE |
Missing Join Predicate | ACCESS |
Any possible target type values associated with certain SQL Trace Audit Events. |
SERVER MEMORY CHANGE:INCREASE |
Server Memory Change | UPDATE |
MEMORY |
SERVER MEMORY CHANGE:DECREASE |
Server Memory Change | UPDATE |
MEMORY |
USER ERROR MESSAGE |
User Error Message | RAISE |
Any possible target type values associated with certain SQL Trace Audit Events. |
BITMAP WARNING:DISABLED |
Bitmap Warning | RAISE |
WARNING |
TRACE START |
Trace Start | START |
Any possible target type values associated with certain SQL Trace Audit Events. |
TRACE STOP |
Trace Stop | STOP |
Any possible target type values associated with certain SQL Trace Audit Events. |
SQL:STMTCOMPLETED |
SQL:Stmt Completed Event | EXECUTE |
Any possible target type values associated with certain SQL Trace Audit Events. |
DBCC |
Audit DBCC Event | EXECUTE |
Any possible target type values associated with certain SQL Trace Audit Events. |
SERVER OPERATION:ALTER SERVER STATE |
Audit Server Operation Event | UPDATE |
Any possible target type values associated with certain SQL Trace Audit Events. |
LOCK:DEADLOCK CHAIN:RESOURCE TYPE LOCK |
Lock:Deadlock Chain | DEADLOCK |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:82) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:83) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:84) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:85) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:86) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:87) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:88) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:89) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:90) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
USER CONFIGURABLE |
User Configurable (Event ID:91) | CONFIGURE |
Any possible target type values associated with certain SQL Trace Audit Events. |
| NOTIFICATION SERVICE | Notification Service | RAISE | DATABASE |
PASSWORD POLICY |
Password Policy | UPDATE | POLICY |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
User Session Events
User session events track audited authentication events for users who log in to the database. Table 13 lists the Microsoft SQL Server user session events and the equivalent Oracle Database Security Central events.
Table 13 SQL Server User Session Audit Events
| Source Event | Event Description | Command Class | Target Type |
|---|---|---|---|
|
Audit Broker Login |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Database Mirroring Login Event | LOGIN |
Any possible target type values associated with certain SQL Trace Audit Events. |
DATABASE OPERATION:CHECKPOINT |
Audit Database Operation Event | SAVEPOINT |
Any possible target type values associated with certain SQL Trace Audit Events. |
DATABASE PRINCIPAL IMPERSONATION |
Audit Database Principal Impersonation Event | IMPERSONATION |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
Audit Login Audit Login Audit Login Failed Audit Logout Audit Logout Login Failed Event Login Failed Event |
|
Any possible target type values associated with certain SQL Trace Audit Events.
|
SERVER PRINCIPAL IMPERSONATION |
Audit Server Principal Impersonation Event | IMPERSONATION |
Any possible target type values associated with certain SQL Trace Audit Events. |
|
SQL Transaction |
|
Any possible target type values associated with certain SQL Trace Audit Events. |
TRANSACTION BEGIN COMPLETED |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION BEGIN STARTING |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION COMMIT COMPLETED |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION COMMIT STARTING |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION PROMOTE COMPLETED |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION PROMOTE STARTING |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION PROPAGATE COMPLETED |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION PROPAGATE STARTING |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION ROLLBACK COMPLETED |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION ROLLBACK STARTING |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION SAVEPOINT COMPLETED |
SQL Transaction | EXECUTE |
DATABASE |
TRANSACTION SAVEPOINT STARTING |
SQL Transaction | EXECUTE |
DATABASE |
STORAGE LOGIN |
Storage login | LOGIN |
SERVER |
STORAGE_LOGIN_GROUP |
Storage login | LOGIN |
SERVER |
See Also: Possible Target Types Values Associated With Certain SQL Trace Audit Events
Target Type Values for SQL Trace Audit Events
Target Type values associated with certain audit events.
These events can be any from the following list. See the Audit Event tables in this references.
Possible Target Types Values Associated With Certain SQL Trace Audit Events
There is a large range of target type values that are associated with certain audit events.
INDEX
PROCEDURE
TRIGGER
TABLE
VIEW
CONSTRAINT
DEFAULT
RULE
DATABASE
OBJECT
CATALOG
SCHEMA
CREDENTIAL
EVENT
FUNCTION
ROLE
GROUP
KEY
LOGIN
REMOTE SERVICE BINDING
NOTIFICATION
SYNONYM
SEQUENCE
END POINT
QUEUE
CERTIFICATE
SERVER
ASSEMBLY
PARTITION SCHEME
USER
SERVICE BROKER SERVICE CONTRACT
TYPE
SERVICE BROKER ROUTE
STATISTICS
SERVICE BROKER SERVICE
CERTIFICATE LOGIN
QUERY
RESOURCE GOVERNOR
DATABASE CONFIGURATION
EXTERNAL LIBRARY
EXTERNAL RESOURCE POOL
EXTERNAL SCRIPT QUERY