Export (0) Print
Expand All

SqlNotificationSource Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

Indicates the source of the notification received by the dependency event handler.

Namespace: System.Data.SqlClient
Assembly: System.Data (in system.data.dll)

public enum SqlNotificationSource
public enum SqlNotificationSource
public enum SqlNotificationSource

 Member nameDescription
ClientA client-initiated notification occurred, such as a client-side time-out or as a result of attempting to add a command to a dependency that has already fired. 
DataData has changed; for example, an insert, update, delete, or truncate operation occurred. 
DatabaseThe database state changed; for example, the database related to the query was dropped or detached. 
EnvironmentThe run-time environment was not compatible with notifications; for example, the isolation level was set to snapshot, or one or more SET options are not compatible. 
ExecutionA run-time error occurred during execution. 
ObjectA database object changed; for example, an underlying object related to the query was dropped or modified. 
OwnerInternal only; not intended to be used in your code. 
StatementThe Transact-SQL statement is not valid for notifications; for example, a SELECT statement that could not be notified or a non-SELECT statement was executed. 
SystemA system-related event occurred. For example, there was an internal error, the server was restarted, or resource pressure caused the invalidation. 
TimeoutThe subscription time-out expired. 
UnknownUsed when the source option sent by the server was not recognized by the client.  

The SqlNotificationSource enumeration is referenced by an instance of the SqlNotificationEventArgs class.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft