TAILIEUCHUNG - 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
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.