다음을 통해 공유


Type Property (Alert)

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

The Type property exposes configured attributes of the referenced Microsoft SQL Server component.

구문

object
.Type

Parts

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

Data Type

Long, enumerated

Modifiable

Read-only

Prototype (C/C++)

HRESULT GetType(SQLDMO_ALERT_TYPE* pRetVal)

Returns

For the Alert object, interpret the Type property using these values.

Constant

Value

Description

SQLDMOAlert_/NonSQLServerEvent

3

An alert is raised by an event not defined for SQL Server.

SQLDMOAlert_SQLServerEvent

1

An alert is raised when a specified SQL Server error condition, or any error condition of a specified severity, occurs.

SQLDMOAlert_/SQLServerPerformanceCondition

2

An alert is raised when a bound is reached or exceeded for a SQL Server counter evaluated by System Monitor in Microsoft Windows.

주의

The Type property is set by adjusting the event source for the alert. For more information, see MessageID Property, PerformanceCondition Property, and Severity Property.

Applies To: