Freigeben über


EventDescriptionKeyword Property

Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

The EventDescriptionKeyword property restricts SQL Server Agent alert firing.

Syntax

object
.EventDescriptionKeyword [=value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A string to search for in the event message text

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetEventDescriptionKeyword(SQLDMO_LPBSTR pRetVal);
HRESULT SetEventDescriptionKeyword(SQLDMO_LPCSTR NewValue);
ms132104.note(de-de,SQL.90).gifHinweis:
SQL Distributed Management Objects (SQL-DMO) strings are always returned as OLE BSTR objects. A C/C++ application obtains a reference to the string. The application must release the reference using SysFreeString.

Hinweise

A SQL Server Agent alert is raised in response to some condition occurring on an instance of Microsoft SQL Server. An alert based on message number or severity can be constrained by indicating that a word or phrase must exist in the message text generated by an instance of SQL Server in response to the condition. The EventDescriptionKeyword property represents this constraining text for a SQL Server Agent alert.

SQL Server Agent performs a case-insensitive search of message text for the word the EventDescriptionKeyword property specifies.

Applies To:

Alert Object