BUG: Stored Procedures Do Not Accurately Report Failed Notifications (811903)
The information in this article applies to:
- Microsoft SQL Server 2000 Notification Services
SYMPTOMSWhen you run the NSDiagnosticFailedNotifications stored procedure for a list of failed notifications, the stored
procedure does not report any failed notifications even though there are failed
notifications to report.
Additionally, the distribution log list that
the NSNotificationClassNameNotificationDistribution view generates does not include delivery failures that occur
because of content formatting errors. As a result, the NSDiagnosticNotificationClass stored procedure logs some failed notifications in the NotificationsNotYetDelivered column because the notifications are not marked as "failed" in
the distribution log.WORKAROUNDTo work around this problem, query the NSNotificationClassNameNotifications table of the application database to obtain the list of failed
notifications. The following sample query is a Transact-SQL query that returns
all failed notifications that the vacuuming process does not remove. Note In the following sample query:
- Replace
Application_database_name with the name of the
application database.
- Replace NotificationClassName
with the notification class name.
Use <Application_database_name>
GO
SELECT
NotificationId,
NotificationBatchId
FROM
NS<NotificationClassName>Notifications
WHERE
DeliveryStatusCode=4
GO Example:
Use FlightInstanceFlight
GO
SELECT
NotificationId,
NotificationBatchId
FROM
NSFlightNotificationsNotifications
WHERE
DeliveryStatusCode=4
GO You can then use the NotificationBatchId value with the NSNotificationBatchDetails stored procedure to obtain more information about the failed
notifications. To troubleshoot failed notifications, view the error information
in the Application log in Event Viewer. STATUS
Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000
Notification Services RTM Version.
Modification Type: | Minor | Last Reviewed: | 4/30/2003 |
---|
Keywords: | kbSysAdmin kbBug KB811903 kbAudDeveloper |
---|
|