共用方式為


SQLSeverity Property

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The SQLSeverity property identifies a Microsoft SQL Server error message severity level.

語法

object.SQLSeverity [= value]

Parts

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

  • value
    A long integer equal to -1 or from 1 through 25

Data Type

Long

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetSQLSeverity(LPLONG pRetVal);
HRESULT SetSQLSeverity(long NewValue);

備註

Set SQLSeverity to filter for jobs that, as part of processing, generate an error with the specified severity level. Set SQLSeverity to -1 to stop filtering by raised error message severity.