Notification Services 與其他技術

更新: 2006 年 7 月 17 日

Notification Services 可以接收來自其他 SQL Server 元件和其他 Microsoft 技術的資料或傳送資料到該元件和技術。此主題描述 Notification Services 如何與這些其他元件和技術整合,以及 Notification Services 與其他技術不同的地方。

與其他 SQL Server 元件整合

下列各節提供 Notification Services 如何與其他 SQL Server 元件整合或溝通的基本資訊。Notification Services 可以透過自訂的元件加以延伸,所以您不會受到如下所示的支援限制。您可以開發自訂的事件提供者或傳遞通訊協定,以支援各種廣泛的應用程式。

Database Engine

Notification Services 將資料儲存在 SQL Server 資料庫中,並且使用 Database Engine 來產生通知。由於 Notification Services 與 Database Engine 之間深入的整合,因此可提供具延伸與可靠的作業。

您也可以擷取事件資料資料庫或傳送通知到 Database Engine。因為從資料庫擷取事件資料非常普遍,所以 Notification Services 具有內建的 SQL Server 事件提供者。此事件提供者是由 Notification Services 引擎主控,並會依照您在應用程式定義中的排程執行。如需詳細資訊,請參閱<SQL Server 事件提供者>。

若要支援擷取資料庫事件的其他案例,可以使用事件提交預存程序。如需詳細資訊,請參閱<Notification Services 預存程序 (Transact-SQL)>。

請注意,Database Engine 本身擁有下列三種通知功能:

  • 事件通知是特殊種類的資料庫物件,可以將伺服器與資料庫事件的相關資訊傳送到 SQL Server Service Broker。
  • 當查詢結果變更時,查詢通知可讓應用程式從 SQL Server 要求通知。
  • 當 SQL Server Agent 作業執行指定的作業後,代理程式作業通知會通知操作員。

這些 Database Engine 功能是用於管理或應用程式開發,但不是用來傳送已格式化的訊息給大量的訂閱者。您可能可以搭配 Notification Services 使用這些功能。

Analysis Services

Notification Services 可以擷取 Analysis Services 資料庫的事件資料。使用內建的 Analysis Services 事件提供者,可以撰寫 MDX 查詢以擷取 Analysis Services 資料庫的資料,然後將資料提交給應用程式事件類別。如需詳細資訊,請參閱<Analysis Services 事件提供者>。

與其他 Microsoft 技術整合

Notification Services 提供數種機制可擷取外部處理序和應用程式的事件。Notification Services 包括標準的事件提供者,可擷取卸除到作業系統資料夾的資料 XML 檔案。

Notification Services 可以使用數種傳遞通訊協定來傳送通知。Notification Services 包括 Simple Mail Transfer Protocol (SMTP),也包括傳遞通知到檔案的通訊協定,它主要是用來測試新的應用程式。

為了支援可快速開發以 Web 為基礎的傳遞通訊協定,Notification Services 提供一個可設定的 HTTP 通訊協定,可以自訂該通訊協定以實作各種 HTTP 和以「簡易物件存取通訊協定」(SOAP) 為基礎的傳遞通訊協定。

Notification Services 與其他重要的 Microsoft 技術整合之後,可以收集通知內容,並將通知傳遞給訂閱者。下列範例顯示 Notification Services 與上述其他技術整合的方式。

訊息佇列及 BizTalk

來自佇列的訊息可以是給通知應用程式的事件,通知也可以透過自訂的傳遞通道傳送到「訊息佇列」佇列,或送到 Microsoft BizTalk。若要使用這些技術,您必須開發自訂的元件。

Live Communication Server

Microsoft Live Communication Server 是 Office 即時通訊伺服器。Live Communication Server 提供即時訊息和資訊,協助您尋找並與其他使用者通訊。

Live Communication Server 可以散發 Notification Services 產生的通知。若要將 Live Communication Server 當做散發者使用,您必須開發或取得自訂傳遞通訊協定,以便使用 Live Communication Server API 將通知提交到 Live Communication Server。

如需有關 Live Communication Server 的詳細資訊,請參閱 Live Communication Server 網站 (英文)。

如需有關開發自訂傳遞通訊協定的詳細資訊,請參閱<部署自訂傳遞通訊協定>。

請參閱

概念

Notification Services 是什麼?
Notification Services 的使用狀況
Notification Services 架構
Notification Services 程式設計架構
Notification Services 部署選項
Notification Services 的安全性、可靠性、延展性及可用性

其他資源

開發自訂的 Notification Services 元件

說明及資訊

取得 SQL Server 2005 協助

變更歷程記錄

版本 歷程記錄

2006 年 7 月 17 日

新增內容:
  • 新增有關 LCS 的資訊。