Data Access Application Block WMI Events

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.

The Data Access Application Block is instrumented with the following WMI events:

  • ConnectionFailedEvent
  • CommandFailedEvent
  • DataConfigurationFailureEvent

The following tables describe each WMI event's properties.

Table 1 describes the properties of the ConnectionFailedEvent WMI event.

Table 1: ConnectionFailedEvent Properties

WMI Property

Description

ConnectionString

The connection string that caused the failure.

ExceptionMessage

The message for the exception that was raised when the connection failed.

InstanceName

The ID of the database provider to which the connection failed, as specified in the configuration file.

UtcTimeStamp

The time that the connection failed.

Table 2 describes the properties of the CommandFailedEvent WMI event.

Table 2: CommandFailedEvent Properties

WMI Property

Description

CommandText

The database command that failed.

ConnectionString

The connection string in use when the command failed.

ExceptionMessage

The message for the exception that was raised when the command failed.

InstanceName

The ID of the database provider that suffered the command failure, as specified in the configuration file.

UtcTimeStamp

The time that the command failed.

Table 3 describes the properties of the DataConfigurationFailureEvent WMI event.

Table 3: DataConfigurationFailureEvent Properties

WMI Property

Description

ExceptionMessage

The message for the exception that was raised when the attempt to create or configure a database failed.

InstanceName

The ID of the database provider that could not be created or configured, as specified in the configuration file.

UtcTimeStamp

The time that the configuration failure occurred.

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Enterprise Library information can be found at the Enterprise Library site.
Show: