tailieunhanh - Microsoft SQL Server 2005 Developer’s Guide- Part 18

Microsoft SQL Server 2005 Developer’s Guide- P18:SQL Server 2005 is a feature-rich release that provides a host of new tools and technologies for the database developer. This book is written to help database developers and DBAs become productive immediately with the new features and capabilities found in SQL Server 2005. | Chapter 5 Developing with Notification Services 149 The StoreID field identifies the store for which events will be subscribed to. The IndexSqlSchema element is used to create an index on the StoreID column. As you saw with the event class Notification Services uses the subscription class descriptions to create database objects when the Notification Services application is generated. After the subscriptions have been set up the next section of code in the EventRules element defines the logic that the Notification Services application will use to match events to subscriptions. While the Event and Subscription information is defined using XML the event rules are created using T-SQL code that s stored in the EventRules Action element. In this example the most important thing to notice is that when the join condition is met a row for the subscriber will be created. In other words when an event record is added where the StoreID matches the StoreID from a subscription record then a new row will be written to the ShipNotifications table creating a notification. That notification will contain the information from the subscription including the SubscriberID the DeviceName and the SubscriberLocale as well as information from the event including the StoreID the Date the ProductID the ProductName and the number of Units. Defining the ADF Notification Schema The final part of the ADF file defines the notification as described in the NotificationClasses section. The NotificationClasses describe how the notification information will be delivered. The NotificationClasses element could describe multiple notification types where each type is described in its own NotificationClass element. Because this sample application uses only one type of notification the NotificationClasses section contains a single NotificationClass element. -- Describes the Notifications -- NotificationClasses NotificationClass NotificationClassName ShipNotifications NotificationClassName Schema Fields Field .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
10    171    0    20-05-2024
10    127    0    20-05-2024
75    145    0    20-05-2024
165    94    0    20-05-2024
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.