PDA

View Full Version : سوال: چگونگی استفاده از ADEventAlerter کامپوننت FireDac برای بروز رسانی تیبل در SqlServer 2008 ؟



fahimi
شنبه 17 فروردین 1392, 19:32 عصر
من مدت زیادی است که دنبال بروز رسانی تیبل به محض تغییر در تیبل شبکه هستم
در این خصوص تاپیک های زیادی ایجاد شد و کم بیش پاسخ های داده شده منجمله استفاده از کامپوننت SDAC
قابلیت Query Notifications در Sqlserver 2005 به بالا متاسفانه من نتوانستم پیاده سازی کنم
ضمن جستجو در این خصوص دیدم که ظاهرا این امر پشتیبانی می کند و در خصوص استفاده Query Notifications
توضیحات زیر را داده


Is used the Query Update Notification service. The TADEventAlerter.Names content should have one of the following formats:
• CHANGE<index>=<message>;<SELECT query>. The event will be fired when the data returned by the SELECT query will be updated and the <message> will be returned as the event name. To fire an event an UPDATE statement against the selected data must be executed.
• <message>. FireDAC will create _AD_EVENTS table. The event will be fired when VALUE of the NAME=<message> row will be updated. To fire an event an UPDATE statement must be performed.
Additionally parameters may be specified in the Names:
• SERVICE=<name>. The name of the service to use. '?' - means to create an uniquely named service and drop it after usage.
• QUEUE=<name>. The name of the message queue to use. '?' - means to create an uniquely named queue and drop it after usage.
Note, to enable query notification execute the command:
ALTER DATABASE <your db name> SET ENABLE_BROKER


از دوستان محترمی که دراین خصوص تجربه دارند لطفا راهنمایی کند