This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The AuditLevel property exposes SQL Server Authentication logging behavior.
object.AuditLevel [= value]
An expression that evaluates to an object in the Applies To list.
A long integer specifying an authentication outcome as described in Settings.
HRESULT GetAuditType(SQLDMO_AUDIT_TYPE* pRetVal);
HRESULT SetAuditType(SQLDMO_AUDIT_TYPE NewValue);
Logs all authentication attempts regardless of success or failure.
Logs failed authentication.
Does not log authentication attempts.
Logs successful authentication.
SQL Server Authentication logging writes log entries to both the Microsoft SQL Server error log and the Windows application log.
For more information about SQL Server security and access control, see Security and Protection (Database Engine).