Create, Modify, and Delete Standard Subscriptions (Reporting Services in Native Mode)Create, Modify, and Delete Standard Subscriptions (Reporting Services in Native Mode)

標準訂閱是希望能透過電子郵件傳遞報表,或傳遞到共用資料夾之個別使用者所建立的訂閱。A standard subscription is one that is created by individual users who want to have a report delivered through e-mail or to a shared folder. 標準訂閱一律是透過它所依據的報表定義。A standard subscription is always defined through the report on which it is based.

建立訂閱的使用者便擁有該訂閱。A user who creates a subscription owns that subscription. 每一個使用者都可以修改或刪除自己所擁有的訂閱。Each user can modify or delete the subscriptions that he or she owns.

注意

SQL Server 2008 R2SQL Server 2008 R2 Reporting ServicesReporting Services 開始,您可以用程式設計的方式傳送訂閱的擁有權。Starting with SQL Server 2008 R2SQL Server 2008 R2Reporting ServicesReporting Services you can transfer the ownership of a subscription programmatically. 沒有任何使用者介面可以用來傳送訂閱的擁有權。There is no user interface you can use to transfer ownership of subscriptions. 如需詳細資訊,請參閱<ChangeSubscriptionOwnerFor more information, see ChangeSubscriptionOwner

取決於RSReportServer.config組態檔設定,使用者可能可以將更多使用者新增至訂用帳戶 (例如,管理員會加入他的電子郵件地址或直屬員工,讓他們每個收到的複本報表)。Depending on RSReportServer.config configuration file settings, users may be able to add more users to a subscription (for example, a manager adds the e-mail addresses of his or her direct reports so that they each receive a copy of the report). 是否支援此功能取決於在定義個別訂閱時,[收件者:] 欄位是否為可見的。Whether this is supported depends on whether the To: field is visible when defining individual subscriptions. 如需詳細資訊,請參閱 < 電子郵件傳遞設定報表伺服器(SSRS 組態管理員)For more information, see Configure a Report Server for E-Mail Delivery (SSRS Configuration Manager).

此主題提供有關由個別使用者建立或管理的標準訂閱資訊。This topic provides information about standard subscriptions that are created and managed by individual users. 資料驅動訂閱有不同的需求和步驟,且會在另一個主題中討論。Data-driven subscriptions have different requirements and steps, and are discussed in a separate topic. 如需詳細資訊,請參閱 < 建立、 修改及刪除資料驅動訂閱For more information, see Create, Modify, and Delete a Data-Driven Subscription.

本主題內容:In this topic:

若要建立訂用帳戶To Create a Subscription

若要建立訂閱,請選擇適用於報表伺服器部署的工具和方法:To create a subscription, choose the tool and approach that is valid for your report server deployment:

  • 本主題的內容描述如何使用 Reporting ServicesReporting Services 報表管理員在原生模式報表伺服器上建立訂閱。The content in this topic explains how to create subscriptions on a native mode report server using Reporting ServicesReporting Services Report Manager. 定義了訂閱之後,您可以在報表管理員中,透過特定報表的 [我的訂閱] 頁面或 [訂閱] 索引標籤存取訂閱。After you define a subscription, you can access it in Report Manager through the My Subscriptions page or the Subscriptions tab of a specific report.

  • 建立及管理 SharePoint 模式報表伺服器的訂閱說明如何在 SharePoint 網站中使用的應用程式頁面,來訂閱以 SharePoint 整合模式執行的報表伺服器上的報表。Create and Manage Subscriptions for SharePoint Mode Report Servers explains how to use the application pages in a SharePoint site to subscribe to reports on a report server that runs in SharePoint integrated mode.

此主題提供建立電子郵件訂閱與檔案共用傳遞訂閱的指示。This topic provides instructions for creating an e-mail subscription and a file share delivery subscription.

報表資料來源必須設定為使用預存認證或不使用認證,然後才能訂閱報表。Before you can subscribe to a report, the report data source must be configured to use stored credentials or no credentials. 如需詳細資訊,請參閱 在 Reporting Services 資料來源中儲存認證For more information, see Store Credentials in a Reporting Services Data Source. 否則的話, [新增訂閱] 按鈕便無法使用。If it does not, the New Subscription button is not available.

本主題並未說明如何建立資料驅動訂閱。This topic does not explain how to create a data-driven subscription. 如需如何建立資料驅動訂閱的指示,請參閱建立資料驅動訂閱 (SSRS 教學課程) 或報表管理員中 [建立資料驅動訂閱] 頁面的線上說明。For instructions on how to create a data-driven subscription, see Create a Data-Driven Subscription (SSRS Tutorial) or the online help for the Create a Data-driven Subscription page in Report Manager.

若要建立檔案共用訂閱To Create a File Share Subscription

  1. 啟動報表管理員 (SSRS 原生模式)Start Report Manager (SSRS Native Mode).

  2. 在報表管理員的 [內容] 頁面上,瀏覽至您要訂閱的報表。In Report Manager, on the Contents page, navigate to the report you want to subscribe to. 按一下報表以開啟它。Click the report to open it.

  3. 按一下 [訂閱] 索引標籤,然後按一下 [新增訂閱]Click the Subscriptions tab, and then click New Subscription.

  4. [傳遞者] 中,選取 [Windows 檔案共用]In Delivered by, select Windows File Share.

  5. [檔案名稱] 中,輸入報表的檔案名稱。In File Name, type a file name for the report.

  6. 選取 [建立檔案時加入副檔名]Select Add a file extension when the file is created. 這個選項會將三個字元的副檔名加入至檔案名稱。This option adds a three-character file extension to the file name. 副檔名是由您選取的報表輸出格式所決定。The file extension is determined by the report output format you select.

  7. 路徑文字方塊中,輸入您要傳遞報表的現有資料夾的通用命名慣例 (UNC) 路徑 (例如\ \< servername>\<我的報表>)。In the Path text box, type a Universal Naming Convention (UNC) path to an existing folder where you want to deliver the reports (for example, \\<servername>\<myreports>). 在路徑的開頭包含雙反斜線字元。Include double backslash characters at the beginning of the path. 請勿在尾端指定反斜線。Do not specify a trailing backslash.

  8. 在 [轉譯格式] 中,選取檔案傳遞的報表輸出格式。In Render Format, select a report output format for file delivery. 選擇對應至將用於開啟報表之桌面應用程式的格式。Choose a format that corresponds to the desktop application that will be used to open the report. 請避免使用無法在單一資料流完成報表轉譯的格式,或者會導入靜態檔案無法支援之互動性的格式 (例如 HTML 4.0)。Avoid formats that do not render a report in a single stream or that introduce interactivity that cannot be supported in a static file (for example, HTML 4.0).

  9. 在 [使用者名稱] 及 [密碼] 文字方塊中,指定存取檔案共用所需的認證,使用者名稱請使用 <網域> \<使用者名稱> 。In the User name and Password text boxes, specify the credentials required to access the file share, using the format <domain>\<user name> for the user name.

  10. 指定覆寫選項。Specify overwrite options. 如果您按一下 [如果舊版存在,不要覆寫檔案] ,則若是偵測到現有的檔案,將不會傳遞。If you click Do not overwrite the file if a previous version exists, the delivery will not occur if an existing file is detected. 如果您按一下 [加入較新版本時,遞增檔案名稱] ,報表伺服器就會在檔案名稱後面附加一個數字,以便與相同名稱的現有檔案區別。If you click Increment file names as newer versions are added, the report server appends a number to the file name to distinguish it from existing files of the same name.

  11. 指定您要傳遞報表的時機:Specify when you want the report delivered:

    • 若要排程傳遞時間,請按一下 [排程報表執行完成時] ,然後按一下 [選取排程] 按鈕。To schedule a delivery time, click When the scheduled report run is complete and click the Select Schedule button. 就會開啟排程頁面。A schedule page opens.

    • 若要選取預先定義的共用排程,其中已經具有您想要使用的日期、時間和循環資訊,請按一下 [在共用排程上] ,然後選取要用的排程。To select a predefined shared schedule that already has the date, time, and recurrence information that you want to use, click On a shared schedule, and then select the schedule to use.

    • 若要在以更新的版本更新報表快照集時傳遞報表,請按一下 [重新整理報表內容時] 。To deliver the report when a report snapshot is updated with a newer version,clickWhen the report content is refreshed. 如果您要訂閱以排程間隔擷取資料的報表,用來重新整理資料的排程就會決定處理訂閱的時間。If you are subscribing to a report that retrieves data at scheduled intervals, the schedule used to refresh the data determines when your subscription is processed.

      注意

      只有當快照集已經和更新排程相關聯時可使用此選項。This option is available only for snapshots that are already associated with an update schedule.

  12. 如果是參數化報表,請指定要用於此訂閱之報表的參數。For parameterized reports, specify parameters to use for the report for this subscription. 參數可以與視需要執行報表或依其他排程作業執行報表所用的參數不同。The parameters can be different from those used to run the report on demand or in other scheduled operations.

報表會以靜態檔案傳遞。The report is delivered as a static file. 如果報表包括互動式功能 (例如,連結到其他資料列或資料行),則那些功能無法使用。If the report includes interactive features (for example, links to additional rows and columns), those features are not available.

若要建立電子郵件訂閱To Create an E-mail Subscription

  1. 在報表管理員的 [內容] 頁面上,瀏覽至您要訂閱的報表。In Report Manager, on the Contents page, navigate to the report you want to subscribe to. 按一下報表以開啟它。Click the report to open it.

  2. 按一下 [訂閱] 索引標籤,然後按一下 [新增訂閱]Click the Subscriptions tab, and then click New Subscription.

  3. 主講,選取電子郵件In Delivered by, select E-Mail. 如果這種傳遞類型無法使用,表示您的報表伺服器尚未針對電子郵件訂閱進行設定。If this delivery type is not available, your report server has not been configured for e-mail subscriptions.

  4. 在 [ To文字方塊中中的收件者名稱:] 欄位會使用您的網域使用者帳戶,自行處理。In the To text box, the recipient name in the To: field is self-addressed using your domain user account. 報表伺服器組態設定會決定系統是否會使用您的使用者帳戶來自行處理 [收件者] 欄位。Report server configuration settings determine whether the To field is self-addressed with your user account. 如需變更組態設定電子郵件地址的詳細資訊,請參閱 < 電子郵件傳遞設定報表伺服器(SSRS 組態管理員)For more information about changing the configuration settings e-mail addresses, see Configure a Report Server for E-Mail Delivery (SSRS Configuration Manager).

    注意

    根據您的權限,可能可以輸入想要傳遞報表的目標電子郵件地址。Depending on your permissions, you might be able to type the e-mail address you want the report delivered to. 若要指定多個電子郵件地址,請使用分號 (;) 隔開。To specify multiple e-mail addresses, separate them with a semicolon (;). 您也可以在 [副本] 、[密件副本] 和 [回覆至] 文字方塊中,鍵入其他電子郵件地址。You can also type additional e-mail addresses in the Cc, Bcc, and Reply-To text boxes. 這需要您具有管理所有訂閱的權限。This requires that you have permission to manage all subscriptions.

  5. 選取傳遞選項,如下所示:Select the delivery options as follows:

    • 若要內嵌或附加報表的副本,請選取 [包含報表]To embed or attach a copy of the report, select Include Report. 報表的格式是由您選取的轉譯格式所決定。The format of the report is determined by the rendering format you select. 如果您認為報表大小將超出您為電子郵件系統所定義的限制,請勿選擇此選項。Do not choose this option if you think the report size will exceed the limit defined for your e-mail system.

    • 若要包含的 URL 連結至報表的電子郵件訊息主體中,選取包含連結To include a URL link to the report in the body of the e-mail message, select Include Link.

    注意

    如果您清除這兩個選項,就只會傳送主旨行中的通知文字。If you clear both of these options, only the notification text in the Subject line is sent.

  6. [轉譯格式] 清單方塊中選擇轉譯格式。Choose a rendering format from the Render Format list box. 如果選取 [包含報表] 以內嵌或附加報表的副本,就可以使用此選項。This option is available if you select Include Report to embed or attach a copy of the report.

    • 若要將報表內嵌於電子郵件訊息的主體,請選取 [網頁封存] 。To embed the report in the body of the e-mail message, select Web archive.

    • 若要將報表當成附加檔案傳送,請選擇其他任一種轉譯格式。To send the report as an attachment, choose any of the other rendering formats.

  7. [優先權] 清單方塊中,選取優先權。Select a priority from the Priority list box. MicrosoftMicrosoft Exchange 中,此設定會設定電子郵件訊息重要性層級的旗標。In MicrosoftMicrosoft Exchange, this setting sets a flag for the importance level of the e-mail message.

  8. 指定您要傳遞報表的時機:Specify when you want the report delivered:

    • 若要排程傳遞時間,請按一下 [排程報表執行完成時] ,然後按一下 [選取排程]To schedule a delivery time, click When the scheduled report run is complete and click Select Schedule. 就會為您開啟排程頁面。A schedule page opens for you.

    • 若要選取預先定義的共用排程,其中已經具有您想要使用的日期、時間和循環資訊,請按一下 [在共用排程上] ,然後選取要用的排程。To select a predefined shared schedule that already has the date, time, and recurrence information that you want to use, click On a shared schedule, and then select the schedule to use.

    • 若要在以更新的版本更新報表快照集時傳遞報表,請按一下 [重新整理報表內容時] 。To deliver the report when a report snapshot is updated with a newer version,clickWhen the report content is refreshed. 如果您要訂閱以排程間隔擷取資料的報表,用來重新整理資料的排程就會決定處理訂閱的時間。If you are subscribing to a report that retrieves data at scheduled intervals, the schedule used to refresh the data determines when your subscription is processed.

    注意

    只有當快照集已經和更新排程相關聯時可使用此選項。This option is available only for snapshots that are already associated with an update schedule.

  9. 如果是參數化報表,請指定要用於此訂閱之報表的參數。For parameterized reports, specify parameters to use for the report for this subscription. 您指定的參數,可以與視需要執行報表或依其他排程作業執行報表所用的參數不同。The parameters that you specify can be different from those used to run the report on demand or in other scheduled operations.

若要修改訂用帳戶To Modify a Subscription

您可以在任何時間修改訂閱。You can modify a subscription at any time. 如果您在處理訂閱時修改訂閱,當更新的設定在傳遞延伸模組接收到訂閱資料之前,儲存到報表伺服器資料庫中時,就會使用更新的設定。If you modify a subscription while it is being processed, the updated settings are used if they are saved to the report server database before the delivery extension receives the subscription data. 否則,會使用現有的設定。Otherwise, the existing settings are used.

若要找出訂閱,請使用 [我的訂閱] 頁面,或檢視與報表相關聯的訂閱定義。To locate a subscription, use the My Subscriptions page or view the subscription definitions that are associated with a report. 您無法直接搜尋訂閱,也無法依擁有者名稱、觸發程序資訊、狀態資訊等等搜尋訂閱。You cannot search for subscriptions directly, nor can you search for a subscription based on owner name, trigger information, status information, and so forth.

訂閱也可以由報表伺服器管理員修改或刪除。Subscriptions can also be modified or deleted by report server administrators.

注意

報表伺服器管理員無法從一個位置,管理在給定報表伺服器上使用的所有個別訂閱。A report server administrator cannot manage from one place all the individual subscriptions that are in use on a given report server. 然而,報表伺服器管理員可以存取個別訂閱以修改或刪除。However, report server administrators can access each individual subscription to modify or delete it.

若要刪除訂閱To Delete a Subscription

刪除訂閱:To delete a subscription"

  1. 啟動報表管理員 (SSRS 原生模式)Start Report Manager (SSRS Native Mode).

  2. 在報表管理員中,按一下全域工具列上的 [我的訂閱] ,然後導覽至您要修改或刪除的訂閱。In Report Manager, click My Subscriptions on the global toolbar and navigate to the subscription you want to modify or delete.

  3. 或者,在開啟之報表的 [訂閱] 索引標籤上,找到您要修改或刪除的訂閱。Alternatively, on the Subscriptions tab of an open report, find the subscription that you want to modify or delete. 執行下列其中之一:Perform one of the following:

    1. 若要修改訂閱,請按一下 [編輯]To modify a subscription, click Edit.

    2. 若要刪除訂閱,請選取訂閱旁的核取方塊,然後按一下 [刪除]To delete a subscription, select the check box next to the subscription, and then click Delete.

本主題並未說明如何取消目前正在報表伺服器上處理的訂閱。This topic does not explain how to cancel a subscription that is currently processing on the report server. 如需有關如何取消訂用帳戶的詳細資訊,請參閱管理執行的處理序For more information about canceling subscriptions, see Manage a Running Process

如果您想要結束訂閱但無法輕易的找到該訂閱,請在所收到的報表上註明,然後依名稱搜尋。If you want to end a subscription and you cannot locate the subscription easily, make a note of the report you are receiving and search for it by name. 存取到報表之後,您就可以將自己從訂閱中移除。Once you access the report, you can remove yourself from the subscription. 如果您找不到訂閱,則該訂閱可能是資料驅動訂閱。If you cannot locate the subscription, the subscription may be a data-driven subscription. 如需詳細資訊,請洽詢您的報表伺服器管理員。For more information, see your report server administrator.

如果基礎報表被刪除,則會自動刪除訂閱。A subscription is deleted automatically if the underlying report is deleted. 如果您在處理訂閱時刪除訂閱,當刪除作業在傳遞延伸模組接收到訂閱資料之前發生,訂閱就會停止。If you delete a subscription while it is being processed, the subscription stops if the delete operation occurs before the delivery extension receives subscription data. 否則,訂閱會繼續處理。Otherwise, the subscription continues to be processed.

另請參閱See Also

工作和權限 Tasks and Permissions
建立及管理 SharePoint 模式報表伺服器的訂閱 Create and Manage Subscriptions for SharePoint Mode Report Servers
建立及管理原生模式報表伺服器的訂閱 Create and Manage Subscriptions for Native Mode Report Servers
Data-Driven Subscriptions Data-Driven Subscriptions
訂閱與傳遞 (Reporting Services) Subscriptions and Delivery (Reporting Services)
報表管理員 (SSRS 原生模式) Report Manager (SSRS Native Mode)
使用我的訂閱Use My Subscriptions