Audit Class
SQL Server 2008
The Audit object represents a SQL Server audit log.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
To get Audit object properties, users can be a member of the public fixed server role.
To set Audit object properties, users must have ALTER ANY SERVER AUDIT or CONTROL SERVER permission on the parent server.
To create an audit log, users must have ALTER ANY SERVER AUDIT or CONTROL SERVER permission on the parent server.
To drop an audit log, users must have ALTER ANY SERVER AUDIT or CONTROL SERVER permission on the parent server.
Note |
|---|
Any authenticated user can read and write to the Windows Application event log. The Application event log requires lower permissions than the Windows Security event log and is less secure than the Windows Security event log. |

Note