Audit Class
The Audit object represents a SQL Server audit log.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
Syntax
'Bildirim
<EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)> _
<PhysicalFacetAttribute> _
Public NotInheritable Class Audit
Inherits ScriptNameObjectBase
Implements ICreatable, IAlterable, IDroppable, IRenamable, _
IScriptable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)]
[PhysicalFacetAttribute]
public sealed class Audit : ScriptNameObjectBase, ICreatable, IAlterable, IDroppable,
IRenamable, IScriptable
[EvaluationModeAttribute(AutomatedPolicyEvaluationMode::CheckOnSchedule)]
[PhysicalFacetAttribute]
public ref class Audit sealed : public ScriptNameObjectBase, ICreatable, IAlterable, IDroppable,
IRenamable, IScriptable
/** @attribute EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule) */
/** @attribute PhysicalFacetAttribute() */
public final class Audit extends ScriptNameObjectBase implements ICreatable, IAlterable,
IDroppable, IRenamable, IScriptable
EvaluationModeAttribute(AutomatedPolicyEvaluationMode.CheckOnSchedule)
PhysicalFacetAttribute
public final class Audit extends ScriptNameObjectBase implements ICreatable, IAlterable,
IDroppable, IRenamable, IScriptable
Remarks
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.
Not
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.
Inheritance Hierarchy
System.Object
Microsoft.SqlServer.Management.Smo.SmoObjectBase
Microsoft.SqlServer.Management.Smo.SqlSmoObject
Microsoft.SqlServer.Management.Smo.NamedSmoObject
Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase
Microsoft.SqlServer.Management.Smo.Audit
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.