Export (0) Print
Expand All
Expand Minimize

AuditActionType Enumeration

The AuditActionType enumeration contains values that are used to specify the audit action types.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SqlEnum (in Microsoft.SqlServer.SqlEnum.dll)

public enum AuditActionType

Member nameDescription
ApplicationRoleChangePasswordGroupThe ApplicationRoleChangePasswordGroup action occurs whenever a password is changed for an application role.
AuditChangeGroupThe AuditChangeGroup action occurs whenever any audit or audit specification is created, modified, or deleted. Any change to an audit is audited in the same audit.
BackupRestoreGroupThe BackupRestoreGroup action occurs whenever a backup or restore operation is performed.
BrokerLoginGroupThe BrokerLoginGroup action occurs when any Service Broker login operation is performed.
DatabaseChangeGroupThe DatabaseChangeGroup action occurs when a database is created, altered, or dropped. At the server scope, this action occurs whenever any database is created, altered, or dropped.
DatabaseMirroringLoginGroupThe DatabaseMirroringLoginGroup action occurs when any database mirroring operation is performed.
DatabaseObjectAccessGroupThe DatabaseObjectAccessGroup action occurs whenever database objects are accessed, such as certificates and asymmetric keys. At the server scope, this action occurs for any object accessed in any database. This can lead to very large audit records.
DatabaseObjectChangeGroupThe DatabaseObjectChangeGroup action occurs when a CREATE, ALTER, or DROP statement is executed on database objects such as schemas. At the server scope, the action occurs whenever any database object is created, altered, or dropped. This can lead to very large quantities of audit records.
DatabaseObjectOwnershipChangeGroupThe DatabaseObjectOwnershipChangeGroup action occurs when a change of owner for objects within the database scope occurs. At the server scope, this action occurs for any object ownership change on any database.
DatabaseObjectPermissionChangeGroupThe DatabaseObjectPermissionChangeGroup action occurs when a GRANT, REVOKE, or DENY statement is issued for database objects, such as assemblies or schemas. At the server scope, this action occurs for any object permission change for any database.
DatabaseOperationGroupThe DatabaseOperationGroup action occurs when operation in a database such as checkpoint or subscribe query notification occur. At the server scope, this action occurs on any database action on any database.
DatabaseOwnershipChangeGroupThe DatabaseOwnershipChangeGroup action occurs when the ALTER AUTHORIZATION statement is used to change the owner of a database and the permissions required to do that are checked. At the server scope, this action occurs for any database ownership change on any database.
DatabasePermissionChangeGroupThe DatabasePermissionChangeGroup action occurs whenever a GRANT, REVOKE, or DENY statement is issued for a statement permission by any user within the scope of the database. At the server scope, this action occurs for any database permission change for any database.
DatabasePrincipalChangeGroupThe DatabasePrincipalChangeGroup action occurs when principals such as users, are created, altered, or dropped from a database. At the server scope, this action occurs whenever any database principals are created, altered, or dropped from any database.
DatabasePrincipalImpersonationGroupThe DatabasePrincipalImpersonationGroup action occurs when there is an impersonation within the database scope, such as the EXECUTE AS statement executed on a user.
DatabaseRoleMemberChangeGroupThe DatabaseRoleMemberChangeGroup action occurs whenever a login is added to or removed from a database role. This action is generated by the sp_addrolemember, sp_changegroup, and sp_droprolemember stored procedures. At the server scope, it is generated for any database role member change to any database.
DbccGroupThe DbccGroup action occurs whenever a DBCC command is issued.
DeleteThe Delete action occurs whenever a DELETE command is issued.
ExecuteThe Execute action occurs whenever an EXECUTE command is issued.
FailedLoginGroupThe FailedLoginGroup action indicates that a user tried to log in to the instance of SQL Server and failed. Events in this class are fired by new connections or connection that are reused from the connection pool.
FullTextGroupThe FulltextGroup action indicates that there is a named pipe connection between the SQL Full-text Filter Daemon Launcher/Filter Daemon and the instance of SQL Server. Events in this class are fired by success or failure of new connections.
InsertThe Insert action occurs whenever an INSERT command is issued.
LoginChangePasswordGroupThe LoginChangePasswordGroup action occurs whenever a login password is changed by using the ALTER LOGIN or the Alter method.
LogoutGroupThe LogoutGroup action indicates that a user has logged out of the instance of SQL Server. Events in this class are fired by new connections or connections that are reused from the connection pool.
ReceiveThe Receive action occurs whenever a RECEIVE command is issued.
ReferencesThe References action occurs whenever a REFERENCES permission is checked.
SchemaObjectAccessGroupThe SchemaObjectAccessGroup action occurs when a schema object is accessed. At the server scope, this action occurs whenever any schema object is accessed on any database.
SchemaObjectChangeGroupThe SchemaObjectChangeGroup action occurs when a CREATE, ALTER, or DROP statement is issued on schema objects, such as tables or views. At the server scope, this action occurs whenever any schema of any database object changes.
SchemaObjectOwnershipChangeGroupThe SchemaObjectOwnershipChangeGroup action occurs when the permissions to change the owner of schema object, such as a table or a view, are selected. This action occurs when the ALTER AUTHORIZATION statement is used to assign an owner to an object. At the server scope, this action occurs for any schema ownership change for any database.
SchemaObjectPermissionChangeGroupThe SchemaObjectPermissionChangeGroup action occurs whenever a GRANT, REVOKE, or DENY statement is issued on a schema object.
SelectThe Select action occurs whenever a SELECT command is issued.
ServerObjectChangeGroupThe ServerObjectChangeGroup action occurs when a CREATE, ALTER, or DROP statement is issued for any server object.
ServerObjectOwnershipChangeGroupThe ServerObjectOwnershipChangeGroup action occurs when the owner is changed for objects in the server scope.
ServerObjectPermissionChangeGroupThe ServerObjectPermissionChangeGroup action occurs whenever a GRANT, REVOKE, or DENY statement is issued for a server object permission by any user.
ServerOperationGroupThe ServerOperationGroup action occurs when security audit operations, such as altering settings, resources, external access, or authorization, are used.
ServerPermissionChangeGroupThe ServerPermissionChangeGroup action occurs when a GRANT, REVOKE, or DENY statement is issued for permission in the server scope, such as creating a login.
ServerPrincipalChangeGroupThe ServerPrincipalChangeGroup action occurs when server principals are created, altered, or dropped. This action is generated by the sp_defaultdb, sp_defaultlanguage stored procedures, and the ALTER LOGIN statement.
ServerPrincipalImpersonationGroupThe ServerPrincipalImpersonationGroup action occurs when there is an impersonation within the server scope, such as an EXECUTE AS statement executed on a login.
ServerRoleMemberChangeGroupThe ServerRoleMemberChangeGroup action occurs whenever a login is added or removed from a fixed server role. This action is generated by sp_addsrvrole and sp_dropsrvrolemember stored procedures.
ServerStateChangeGroupThe ServerStateChangeGroup action occurs when the SQL Server service is modified.
SuccessfulLoginGroupThe SuccessfulLoginGroup action indicates that a user has successfully logged in to the instance of SQL Server. Events in this class are fired by new connections or by connections that are reused from the connection pool.
TraceChangeGroupThe TraceChangeGroup action occurs whenever a Trace operation is performed.
UpdateThe Update action occurs whenever an UPDATE command is issued.

The AuditActionType enumeration class is served by the Action() property.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft