定义非宿主事件提供程序

非宿主事件提供程序是外部应用程序,它们使用 EventCollector 类、EventLoader 类或事件收集存储过程将事件数据提交给 Notification Services 应用程序。

Notification Services 不对非宿主事件提供程序进行控制,也不与其进行交互。因此,只有在应用程序定义中提供事件提供程序名称,以后才能跟踪由事件提供程序提交的事件,并对其进行故障排除。

定义非宿主事件提供程序

每个应用程序都可拥有非宿主事件提供程序。定义应用程序时,请为每个非宿主事件提供程序声明并提供一个名称。

定义宿主事件提供程序

如果您通过 XML 定义应用程序,请在应用程序定义文件 (ADF) 的 Providers 元素中定义宿主事件提供程序。如果使用 Notification Services 管理对象 (NMO) 定义应用程序,请分别定义各个 NonHostedEventProvider 对象,然后使用应用程序的 NonHostedEventProviders 属性将它们添加到 NonHostedEventProviderCollection 中。

提供事件提供程序名称

请参阅

参考

Microsoft.SqlServer.NotificationServices.EventCollector
Microsoft.SqlServer.NotificationServices.EventLoader

概念

定义宿主事件提供程序

其他资源

定义 Notification Services 应用程序
开发自定义事件提供程序
定义事件提供程序
定义事件类
标准事件提供程序
Notification Services 存储过程 (Transact-SQL)

帮助和信息

获取 SQL Server 2005 帮助