다음을 통해 공유


AuditLevel Property

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 않도록 하고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The AuditLevel property exposes SQL Server Authentication logging behavior.

구문

object.AuditLevel [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.

  • value
    A long integer specifying an authentication outcome as described in Settings.

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetAuditType(SQLDMO_AUDIT_TYPE* pRetVal);
HRESULT SetAuditType(SQLDMO_AUDIT_TYPE NewValue);

Settings

Constant

Value

Description

SQLDMOAudit_All

3

Logs all authentication attempts regardless of success or failure.

SQLDMOAudit_Failure

2

Logs failed authentication.

SQLDMOAudit_None

0

Does not log authentication attempts.

SQLDMOAudit_Success

1

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 보안 및 보호(데이터베이스 엔진).